Bug 1203447 - internal compiler error for auto return type without trailing return type
Summary: internal compiler error for auto return type without trailing return type
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 20
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-18 20:54 UTC by Norman Goldstein
Modified: 2015-06-30 00:15 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-30 00:15:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Preprocessed source referred to by gcc in error message (528 bytes, text/x-csrc)
2015-03-18 20:54 UTC, Norman Goldstein
no flags Details

Description Norman Goldstein 2015-03-18 20:54:34 UTC
Created attachment 1003418 [details]
Preprocessed source referred to by gcc in error message

Description of problem:
gcc emits the following error
 internal compiler error: in gen_type_die_with_usage, at dwarf2out.c:19499
when compiling:
g++ -ggdb   -std=c++11  -c t.cpp

Without -ggdb, an internal error is not reported

Version-Release number of selected component (if applicable):
gcc version 4.8.3 20140911 (Red Hat 4.8.3-7) (GCC)

How reproducible:
Always

Steps to Reproduce:
1. g++ -ggdb   -std=c++11  -c t.cpp
2.
3.

Actual results:
> warning: ‘ego’ function uses ‘auto’ type specifier without trailing return type [enabled by default]
   auto ego( void ) { return *this; }
                  ^
> internal compiler error: in gen_type_die_with_usage, at dwarf2out.c:19499
 struct C
        ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccvr9ZrI.out file, please attach this to your bugreport.


Expected results:
> warning: ‘ego’ function uses ‘auto’ type specifier without trailing return type [enabled by default]
   auto ego( void ) { return *this; }


Additional info:
Here is the source code to be compiled:

struct C
{
  auto ego( void ) { return *this; }
};

Comment 1 Marek Polacek 2015-03-18 20:59:47 UTC
This doesn't ICE in gcc-4.9.2-6.fc21.x86_64.

Comment 2 Jakub Jelinek 2015-03-24 16:37:54 UTC
This got fixed in http://gcc.gnu.org/PR58550 which turned it from ice-on-invalid-code into rejects-invalid.  As it is just ice-on-invalid-code, I think the fix shouldn't be backported. Deduced return type is only in C++14, which isn't supported in GCC 4.8.

Comment 3 Fedora End Of Life 2015-05-29 13:45:13 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2015-06-30 00:15:39 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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