re PR c++/55080 (-pedantic produces error: floating-point literal cannot appear in...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 17 Nov 2016 21:44:05 +0000 (21:44 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 17 Nov 2016 21:44:05 +0000 (21:44 +0000)
commit80557bb787a65fb5b7a65d14ccabe6e962f88079
tree4a94aa82d8e23bef51b7cc23fea6e0a4a94fd601
parentc80620fcfa577f25449c727758627f47224cfaf9
re PR c++/55080 (-pedantic produces error: floating-point literal cannot appear in a constant-expression)

/cp
2016-11-17  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55080
* parser.c (cp_parser_non_integral_constant_expression): Issue a
pedwarn instead of an error for case NIC_FLOAT.

/testsuite
2016-11-17  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55080
* g++.dg/parse/pr55080.C: New.

From-SVN: r242565
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/pr55080.C [new file with mode: 0644]