http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53567
Bug #: 53567 Summary: ICE: Error reporting routines re-entered on missing enum entry Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: lu...@math.hu-berlin.de C:\dev\projects\chess>gcc --std=c++11 gcc_test.cpp ' 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. I attached a minimal testcase. I would expect something like: C:\dev\projects\chess>gcc --std=c++11 gcc_test.cpp gcc_test.cpp: In instantiation of 'EnumMask<EnumT> operator~(EnumT) [with EnumT = A; typename IntegerType<sizeof (EnumT), ((EnumT)((-1)) > (EnumT)(0))>::type = unsigne d int]': gcc_test.cpp:26:7: required from here gcc_test.cpp:21:57: error: 'maskAll' is not a member of 'A'