This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/8164: internal error: segmentation fault


Hi,

the problem can be reduced to the following code snippet (which looks
legal to me):

-------------------------------snip here-------------------------
template <bool> struct A {};

template <bool> struct B
{
  void foo()
  {
    const int i=0;
    typedef A< i<=1 > C;
    typedef A< i<=2 > C;
  }
};
-------------------------------snip here-------------------------

gcc 2.95.x rejects the code with an error message.
gcc 3.0.x, the 3.2 branch and mainline produce an ICE.

Greetings,
Volker

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8164



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]