Bug 56639 - ice in cp_parser_late_return_type_opt
Summary: ice in cp_parser_late_return_type_opt
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.9.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-17 13:29 UTC by David Binderman
Modified: 2013-03-18 11:12 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
gzipped C++ source code (372.22 KB, application/x-gzip)
2013-03-17 21:10 UTC, David Binderman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2013-03-17 13:29:54 UTC
I just tried to compile the package kdesdk-4.10.1-1
on gcc-4.9 trunk dated 20130317 on an AMD x86_64 box.

The compiler said

BUILD/kdesdk-4.10.1/lokalize/src/project/projecttab.cpp:248:38: internal compiler error: in cp_parser_late_return_type_opt, at cp/parser.c:17053
     if (QFileInfo(Project::instance()->templatesRoot()).exists())
                                      ^


Preprocessed source code attached. No special flags required.
Comment 1 Jason Merrill 2013-03-17 20:34:04 UTC
I don't see an attachment.
Comment 2 David Binderman 2013-03-17 21:10:17 UTC
Created attachment 29685 [details]
gzipped C++ source code
Comment 3 Jason Merrill 2013-03-18 03:41:19 UTC
Author: jason
Date: Mon Mar 18 03:41:10 2013
New Revision: 196765

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196765
Log:
	PR c++/54359
	PR c++/56639
	* parser.c (cp_parser_direct_declarator): Bail if we see a
	qualified-id not at namespace scope.

Added:
    trunk/gcc/testsuite/g++.dg/template/arrow2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/g++.dg/parse/typename7.C
Comment 4 Richard Biener 2013-03-18 11:12:47 UTC
Fixed.