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

Reply via email to