[Bug c++/47200] New: [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function
zsojka at seznam dot cz
gcc-bugzilla@gcc.gnu.org
Fri Jan 7 02:20:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47200
Summary: [C++0x] ICE: in adjust_temp_type, at
cp/semantics.c:5821 with missing definition of
constexpr function
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Created attachment 22918
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22918
reduced testcase
Compiler output:
$ gcc -std=c++0x pr47200.C
pr47200.C:13:1: error: non-constant condition for static assertion
pr47200.C:13:40: error: 'static constexpr duration<<anonymous> >
duration<<anonymous> >::min() [with int <anonymous> = 0, duration<<anonymous> >
= duration<0>]' used before its definition
pr47200.C:13:1: internal compiler error: in adjust_temp_type, at
cp/semantics.c:5821
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r168535 - crash
r165699 - rejects the code
More information about the Gcc-bugs
mailing list