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; } };
This doesn't ICE in gcc-4.9.2-6.fc21.x86_64.
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.
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.
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.