Implement N3928 - Extending static_assert
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Wed, 24 Jun 2015 15:27:04 +0000 (15:27 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Wed, 24 Jun 2015 15:27:04 +0000 (15:27 +0000)
commite79fc3d4d72228eeec47b8a53721663371042b8e
tree58295d23ad987e9a1dc0d61178435cf66c08a320
parentaa97bb6f1229cf69aa17ad7660c3bc63c39ab22b
Implement N3928 - Extending static_assert

cp/

2015-06-24  Edward Smith-Rowland  <3dw4rd@verizon.net>

Implement N3928 - Extending static_assert
* parser.c (cp_parser_static_assert): Support static_assert with
no message string.  Supply an empty string in this case.
* semantics.c (finish_static_assert): Don't try to print a message if
the message strnig is empty.

testsuite/

2015-06-24  Edward Smith-Rowland  <3dw4rd@verizon.net>

Implement N3928 - Extending static_assert
* g++.dg/cpp0x/static_assert8.C: Adjust.
* g++.dg/cpp0x/static_assert12.C: New.
* g++.dg/cpp0x/static_assert13.C: New.
* g++.dg/cpp1y/static_assert1.C: New.
* g++.dg/cpp1y/static_assert2.C: New.
* g++.dg/cpp1z/static_assert-nomsg.C: New.

From-SVN: r224903
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/static_assert12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/static_assert13.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/static_assert8.C
gcc/testsuite/g++.dg/cpp1y/static_assert1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/static_assert2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/static_assert-nomsg.C [new file with mode: 0644]