This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84792] [6/7/8 Regression] ICE with broken typedef of a struct
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Apr 2018 17:05:35 +0000
- Subject: [Bug c++/84792] [6/7/8 Regression] ICE with broken typedef of a struct
- Auto-submitted: auto-generated
- References: <bug-84792-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84792
--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu Apr 5 17:05:03 2018
New Revision: 259136
URL: https://gcc.gnu.org/viewcvs?rev=259136&root=gcc&view=rev
Log:
/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.
Added:
trunk/gcc/testsuite/g++.dg/other/pr84792-1.C
trunk/gcc/testsuite/g++.dg/other/pr84792-2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog