Commit c81ec254 by Paolo Carlini Committed by Paolo Carlini

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
parent aee21066
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
* g++.dg/cpp0x/variadic170.C: New.
......
// { 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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment