This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/86182] [8/9 Regression] gcc crashes when compiling the code
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Jun 2018 14:23:51 +0000
- Subject: [Bug c++/86182] [8/9 Regression] gcc crashes when compiling the code
- Auto-submitted: auto-generated
- References: <bug-86182-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86182
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Jun 21 14:23:19 2018
New Revision: 261850
URL: https://gcc.gnu.org/viewcvs?rev=261850&root=gcc&view=rev
Log:
PR c++/86182 - ICE with anonymous union passed to template.
* pt.c (tsubst_expr) [DECL_EXPR]: Handle an anonymous union type
used to declare a named variable.
Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/template/anonunion3.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/pt.c