This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47200] New: [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 7 Jan 2011 02:05:46 +0000
- Subject: [Bug c++/47200] New: [C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function
- Auto-submitted: auto-generated
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