re PR c++/71248 (crash on in-class initializer of array of pointer to member)
authorPaolo Carlini <paolo@gcc.gnu.org>
Tue, 31 May 2016 17:17:29 +0000 (17:17 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 31 May 2016 17:17:29 +0000 (17:17 +0000)
commitc642d91957c82c4a1db50e17f62dc0aa70b8765e
tree14aab8875329d71e895c769273607c53e4fadfe1
parent1ac1bb0cccdba65e0fc1c4f28e92d1fb2f593ac2
re PR c++/71248 (crash on in-class initializer of array of pointer to member)

/cp
2016-05-31  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71248
* decl.c (check_static_variable_definition): Use DECL_SOURCE_LOCATION
to obtain correct locations; avoid redundant diagnostics on
out-of-class definitions.

/testsuite
2016-05-31  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71248
* g++.dg/cpp0x/pr71248.C: New.
* g++.dg/cpp0x/auto7.C: Test column numbers too.
* g++.dg/cpp0x/constexpr-static8.C: Likewise.
* g++.dg/init/new37.C: Likewise.
* g++.dg/template/static1.C: Likewise.
* g++.dg/template/static2.C: Likewise.

From-SVN: r236931
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto7.C
gcc/testsuite/g++.dg/cpp0x/constexpr-static8.C
gcc/testsuite/g++.dg/cpp0x/pr71248.C [new file with mode: 0644]
gcc/testsuite/g++.dg/init/new37.C
gcc/testsuite/g++.dg/template/static1.C
gcc/testsuite/g++.dg/template/static2.C