re PR c++/79652 (ICE on invalid c++ code in warn_extern_redeclared_static in cp/decl.c:1231)
2017-05-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/79652 * g++.dg/cpp0x/pr79652.C: New. From-SVN: r248474
This commit is contained in:
parent
aee21066ff
commit
c81ec254f9
2 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2017-05-25 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/79652
|
||||
* g++.dg/cpp0x/pr79652.C: New.
|
||||
|
||||
2017-05-25 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/71451
|
||||
|
|
12
gcc/testsuite/g++.dg/cpp0x/pr79652.C
Normal file
12
gcc/testsuite/g++.dg/cpp0x/pr79652.C
Normal file
|
@ -0,0 +1,12 @@
|
|||
// { dg-do compile { target c++11 } }
|
||||
|
||||
namespace {
|
||||
struct S {
|
||||
int n;
|
||||
} T;
|
||||
using T = decltype(S :: n); // { dg-error "redeclared" }
|
||||
namespace {
|
||||
extern int x;
|
||||
extern int x;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue