This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77790] [5/6/7 Regression] ICE on valid C++14 code when compiling with "-std=c++11": in push_access_scope, at cp/pt.c:227
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Feb 2017 19:02:55 +0000
- Subject: [Bug c++/77790] [5/6/7 Regression] ICE on valid C++14 code when compiling with "-std=c++11": in push_access_scope, at cp/pt.c:227
- Auto-submitted: auto-generated
- References: <bug-77790-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77790
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |msebor at gcc dot gnu.org
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Prior to r185768 GCC in C++ 11 mode rejected auto functions without trailing
return type. With r185768 GCC would accept it with a warning (enabled by
default). r207055 changed the pedantic warning into an error. In light of
this, should this bug be viewed as ice-on-invalid-code (error-recovery)? Or is
it ice-on-valid because it broke in GCC 5 where the code was accepted in C++ 11
mode with just a warning?