re PR c++/84792 (ICE with broken typedef of a struct)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 5 Apr 2018 17:05:03 +0000 (17:05 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 5 Apr 2018 17:05:03 +0000 (17:05 +0000)
commit3b4a12aa8a7c7298c0b6277dad82e1dd95857eb8
tree9baede93c832fe05658a4eb44355dd4535496a77
parent970d3d9011542639b420610a29bf9046fcee606c
re PR c++/84792 (ICE with broken typedef of a struct)

/cp
2018-04-05  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84792
* decl.c (grokdeclarator): Fix diagnostic about typedef name used
as nested-name-specifier, keep type and TREE_TYPE (decl) in sync.

/testsuite
2018-04-05  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84792
* g++.dg/other/pr84792-1.C: New.
* g++.dg/other/pr84792-2.C: Likewise.

From-SVN: r259136
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr84792-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/pr84792-2.C [new file with mode: 0644]