This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10642: Internal compiler error
- From: bangerth at dealii dot org
- To: alnsn at yandex dot ru, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 6 May 2003 14:51:59 -0000
- Subject: Re: c++/10642: Internal compiler error
- Reply-to: bangerth at dealii dot org, alnsn at yandex dot ru, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Internal compiler error
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Tue May 6 14:51:58 2003
State-Changed-Why:
Already fixed. The code is illegal and boils down to
something like this:
-----------------------
namespace boost { namespace dynamic_any {}}
struct X
: boost::dynamic_any<X, void (int,int)>
{
};
------------------------
This crashes gcc from 2.95 to 3.3, but 3.4 now gives
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c y.cc
y.cc:4: error: expected template-name
y.cc:4: error: expected `{'
y.cc:4: error: expected unqualified-id
y.cc:4: error: expected `,' or `;'
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10642