This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84840] New: ICE (in poplevel_class) for `auto` in alias declaration
- From: "v.reshetnikov at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Mar 2018 03:00:56 +0000
- Subject: [Bug c++/84840] New: ICE (in poplevel_class) for `auto` in alias declaration
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84840
Bug ID: 84840
Summary: ICE (in poplevel_class) for `auto` in alias
declaration
Product: gcc
Version: 8.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: v.reshetnikov at gmail dot com
Target Milestone: ---
The following C++ code causes an ICE in GCC 8.0.1 20180312 (tested with
https://godbolt.org/):
/************* SOURCE *************/
struct S {
using type = void(auto);
};
/*********** END SOURCE ***********/
/************* OUTPUT *************/
<source>:3:1: internal compiler error: in poplevel_class, at
cp/name-lookup.c:4423
};
^
mmap: Invalid argument
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
/*********** END OUTPUT ***********/