Bug 10953 - [3.4 regression] ICE in cp_parser_function_definition at cp/parser.c:10931
Summary: [3.4 regression] ICE in cp_parser_function_definition at cp/parser.c:10931
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.4.0
: P1 critical
Target Milestone: 3.4.0
Assignee: Nathan Sidwell
URL:
Keywords: ice-on-invalid-code, monitored
Depends on:
Blocks:
 
Reported: 2003-05-23 12:53 UTC by Christian Ehrhardt
Modified: 2004-01-17 04:22 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2003-06-23 12:52:34


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Ehrhardt 2003-05-23 12:53:55 UTC
The following piece of illegal code starte to ICE with 3.4:
--------- cut ----------
class 
{
typename 
:: 
;
--------- cut ----------

   regards  Christian
Comment 1 Wolfgang Bangerth 2003-05-23 14:38:21 UTC
Confirmed. A regression on mainline.

Apart from that, the same holds as for 10952. You must have had a rather
bad day, Christian, writing such crappy code!?

W.
Comment 2 Volker Reichelt 2003-06-02 12:06:27 UTC
BTW, the code also crashes gcc 3.0.x.
Comment 3 Nathan Sidwell 2003-07-23 13:02:20 UTC
2003-07-23  Nathan Sidwell  <nathan@codesourcery.com>

	PR c++/10953
	* parser.c (cp_parser_nested_name_specifier): Reset scope on
	failure.
	(cp_parser_elaborated_type_specifier): Likewise.