This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/86182] [8/9 Regression] gcc crashes when compiling the code


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]