http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50972
Bug #: 50972 Summary: [C++0x] ICE on undeclared identifier Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: jarr...@cse.unsw.edu.au Created attachment 25698 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25698 triggers an internal compiler error The attached code fails causes an internal compiler error. I reduced it to about 500 lines. The error now isn't the original error, but they both seem to come from an undeclared identifier. The relevant line is: ice-undeclared.ii:275:7: error: ‘_S_propagate_on_swap’ was not declared in this scope The error reported is: ice-undeclared.ii: At global scope: ice-undeclared.ii:473:21: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Compiled with: g++ -std=gnu++11 ice-undeclared.ii -c gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/home/jarrydb/current/soft/install-latest/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /home/jarrydb/current/soft/src/gcc-git/configure --prefix=/home/jarrydb/current/soft/install-latest --disable-multilib --enable-languages=c,c++ Thread model: posix gcc version 4.7.0 20111102 (experimental) (GCC)