This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54264] internal compiler error on sample program from the C++ standard


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]