DR 1511 - const volatile variables and ODR
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Oct 2016 19:00:38 +0000 (21:00 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 14 Oct 2016 19:00:38 +0000 (21:00 +0200)
commit064ed55a66a788b1939fb93bd64ea3705e8384c7
treea3cad8dde2b843cd8aa2efd08bfda9680d92d4a5
parent2579762a4b1979d894d489f72060f4b39fcdd1c6
DR 1511 - const volatile variables and ODR

DR 1511 - const volatile variables and ODR
* decl.c (grokvardecl): Change flags argument to type_quals,
add conceptp argument.  Set TREE_PUBLIC for non-static volatile vars.
(grokdeclarator): Adjust grokvardecl caller.

* g++.dg/DRs/dr1511-1.C: New test.
* g++.dg/DRs/dr1511-2.C: New test.

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