PR c++/86192 - ICE with anonymous union passed to template.
authorJason Merrill <jason@redhat.com>
Tue, 19 Jun 2018 18:46:51 +0000 (14:46 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 19 Jun 2018 18:46:51 +0000 (14:46 -0400)
commit0e570cf8b6e47bc3ee9031eae70acf57bc5fd655
tree78bfb618b65263a8deb2a7b1c79c25ddc4602dc1
parent9a775e9df5f72a8a9627fca8d412361562c8186a
PR c++/86192 - ICE with anonymous union passed to template.

* pt.c (tsubst_expr) [DECL_EXPR]: Handle an anonymous union type
used to declare a named variable.

From-SVN: r261757
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/anonunion3.C [new file with mode: 0644]