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] |
>Number: 9228 >Category: c++ >Synopsis: [3.4 regression] [New parser] SegFault on illegal template >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Jan 08 07:56:02 PST 2003 >Closed-Date: >Last-Modified: >Originator: bangerth@ticam.utexas.edu >Release: unknown-1.0 >Organization: >Environment: 3.4 with new parser >Description: This is a new ICE on this little illegal piece of code: -------------------------------- template <class T> typename O<T>::I f () {} -------------------------------- Since O is not a declared class, this should fail, and indeed does with 3.3: deal.II/base> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c d.cc d.cc:2: error: parse error before `<' token However, with 3.4 I now get deal.II/base> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c d.cc d.cc:2: 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. What's a little annoying is that the ICE happens before any message is written, so it is not obvious right away what's wrong. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |