[Bug c++/48969] New: ICE with -std=c++0x
ajrh at ajrh dot net
gcc-bugzilla@gcc.gnu.org
Wed May 11 21:14:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48969
Summary: ICE with -std=c++0x
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ajrh@ajrh.net
The file below compiles OK if the -std=c++0x flag is not passed
g++ -c -std=c++0x x.cpp
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report, [...]
===========
template<unsigned int N> struct Pair { };
struct Foo { enum { Mask = 1 }; } foo;
template<typename A, typename B> class Pair<A::Mask | B::Mask> operator|(const
A &, const B &)
{
foo | foo;
};
More information about the Gcc-bugs
mailing list