c++/9228: [3.4 regression] [New parser] SegFault on illegal template
Wolfgang Bangerth
bangerth@ticam.utexas.edu
Wed Jan 8 16:46:00 GMT 2003
The following reply was made to PR c++/9228; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/9228: [3.4 regression] [New parser] SegFault on illegal
template
Date: Wed, 8 Jan 2003 10:34:28 -0600 (CST)
Possibly related:
------------------------
struct O {
struct I { I (int); };
};
template <class T_>
typename O<T_>::I f () { return 1; };
-------------------------
deal.II/base> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c g.cc
g.cc:6: error: non-template type `O' used as a template
g.cc:6: error: `I' is not a class or namespace
g.cc:6: error: ISO C++ forbids declaration of `f' with no type
deal.II/base>
deal.II/base>
deal.II/base> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c g.cc
g.cc:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth/
More information about the Gcc-prs
mailing list