Bug 1228916 - gcc 5.1.1: sorry, unimplemented: unexpected AST of kind type_decl
Summary: gcc 5.1.1: sorry, unimplemented: unexpected AST of kind type_decl
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-06 15:56 UTC by Sam Varshavchik
Modified: 2015-06-18 13:29 UTC (History)
5 users (show)

Fixed In Version: gcc-5.1.1-3.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-18 13:29:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
gcc log. (2.78 MB, text/x-csrc)
2015-06-06 15:56 UTC, Sam Varshavchik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 66445 0 None None None Never

Description Sam Varshavchik 2015-06-06 15:56:55 UTC
Created attachment 1035648 [details]
gcc log.

Description of problem:

gcc reports an internal error, and bails out.

Version-Release number of selected component (if applicable):

5.1.1

How reproducible:

always

Steps to Reproduce:
1. See attachment
2.
3.

Actual results:


Expected results:


Additional info:

gcc 4.9 was able to compile this.

Comment 1 Jonathan Wakely 2015-06-11 14:22:25 UTC
That can be done in standard C++ without relying on statement expressions:

 auto cb1=(
   handlerlock(vip),

   l.install_front([=]
     (const testvip &v)
     {
      seen->seen.push_back(v.n);
     } , *readlock(vip))
 );

Construction of the temporary handlerlock is sequenced before the call to install_front, and it will be destroyed at the end of the full expression.

Comment 2 Fedora Update System 2015-06-13 20:18:12 UTC
gcc-5.1.1-3.fc22,gcc-python-plugin-0.14-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/gcc-5.1.1-3.fc22,gcc-python-plugin-0.14-2.fc22

Comment 3 Fedora Update System 2015-06-14 17:30:03 UTC
Package gcc-5.1.1-3.fc22, gcc-python-plugin-0.14-2.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gcc-5.1.1-3.fc22 gcc-python-plugin-0.14-2.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-9967/gcc-5.1.1-3.fc22,gcc-python-plugin-0.14-2.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-06-18 13:29:02 UTC
gcc-5.1.1-3.fc22, gcc-python-plugin-0.14-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.