[Bug c++/86182] [8/9 Regression] gcc crashes when compiling the code
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 21 14:23:00 GMT 2018
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
More information about the Gcc-bugs
mailing list