http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54264

--- Comment #1 from meng at g dot clemson.edu 2012-08-14 21:44:31 UTC ---
here is my command line:
~/gcc/4.7.0/bin/c++ -std=c++11 -Wall -O3 t1.cc

and its output:
t1.cc: In substitution of ‘template<class T> decltype (i(h<T>())) f(T) [with T
= int]’:
t1.cc:8:5:   required from here
t1.cc:4:28: error: use of deleted function ‘A< <template-parameter-1-1> >::~A()
[with <template-parameter-1-1> = int]’
t1.cc:1:32: error: declared here
t1.cc:4:28: error: use of deleted function ‘A< <template-parameter-1-1> >::~A()
[with <template-parameter-1-1> = int]’
t1.cc:1:32: error: declared here
t1.cc:4:28: error: use of deleted function ‘A< <template-parameter-1-1> >::~A()
[with <template-parameter-1-1> = int]’
t1.cc:1:32: error: declared here
t1.cc:4:28: error: use of deleted function ‘A< <template-parameter-1-1> >::~A()
[with <template-parameter-1-1> = int]’
t1.cc:1:32: error: declared here
t1.cc: In function ‘int main()’:
t1.cc:8:5: error: use of deleted function ‘A< <template-parameter-1-1> >::~A()
[with <template-parameter-1-1> = int]’
t1.cc:1:32: error: declared here
‘
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

here is my compiler version info:
~/gcc/4.7.0/bin/c++ -v
Reading specs from /home/meng/gcc/4.7.0/lib/gcc/i686-pc-linux-gnu/4.7.0/specs
COLLECT_GCC=/home/meng/gcc/4.7.0/bin/c++
COLLECT_LTO_WRAPPER=/home/meng/gcc/4.7.0/libexec/gcc/i686-pc-linux-gnu/4.7.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ./configure --prefix=/home/meng/gcc/4.7.0/
--enable-languages=c,c++
Thread model: posix
gcc version 4.7.0 (GCC)

Reply via email to