http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48294
Summary: internal compiler error: in build_noexcept_spec, at cp/except.c:1217 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: kyle.kloep...@riverbed.com Alisdair Meredith found a bug with the following code: struct booleable { bool data; constexpr explicit operator bool() { return data; } }; constexpr booleable truthy_func() { return {true}; } void funky() noexcept(truthy_func()) {} int main() { funky(); return 0; } VERSION AND ERROR: [kkloepper@pan scratch]$ g++ -std=c++0x alisdair_bug.cc -o alisdair_bug alisdair_bug.cc:9:36: internal compiler error: in build_noexcept_spec, at cp/except.c:1217 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. [kkloepper@pan scratch]$ g++ --version g++ (GCC) 4.6.0 20110112 (experimental) Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [kkloepper@pan scratch]$