This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48369] New: [4.6 Regression] [C++0x] ICE in potential_constant_expression_1, at cp/semantics.c:7746
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Mar 2011 16:03:14 +0000
- Subject: [Bug c++/48369] New: [4.6 Regression] [C++0x] ICE in potential_constant_expression_1, at cp/semantics.c:7746
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48369
Summary: [4.6 Regression] [C++0x] ICE in
potential_constant_expression_1, at
cp/semantics.c:7746
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: redi@gcc.gnu.org
CC: jason@gcc.gnu.org
extern "C" int isnan (double);
void f(double d)
{
bool b = isnan(d);
}
$ ~/gcc/4.6/bin/g++ s.cc -std=gnu++0x
s.cc: In function 'void f(double)':
s.cc:5:21: sorry, unimplemented: unexpected ast of kind unordered_expr
s.cc:5:21: internal compiler error: in potential_constant_expression_1, at
cp/semantics.c:7746
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Only happens when the function is extern "C" but that obviously affects the
whole of <math.h>
No ICE for -std=c++98 / gnu++98 / c++0x, only gnu++0x
I haven't tried it on trunk