[Bug c++/55080] -pedantic produces error: floating-point literal cannot appear in a constant-expression

2016-11-17 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55080

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |7.0

--- Comment #6 from Paolo Carlini  ---
Fixed.

[Bug c++/55080] -pedantic produces error: floating-point literal cannot appear in a constant-expression

2016-11-17 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55080

--- Comment #5 from paolo at gcc dot gnu.org  ---
Author: paolo
Date: Thu Nov 17 21:44:05 2016
New Revision: 242565

URL: https://gcc.gnu.org/viewcvs?rev=242565&root=gcc&view=rev
Log:
/cp
2016-11-17  Paolo Carlini  

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  

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

Added:
trunk/gcc/testsuite/g++.dg/parse/pr55080.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog

[Bug c++/55080] -pedantic produces error: floating-point literal cannot appear in a constant-expression

2015-04-29 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55080

Manuel López-Ibáñez  changed:

   What|Removed |Added

   Keywords||easyhack

--- Comment #3 from Manuel López-Ibáñez  ---
This should be an easy fix once a solution and the text is agreed.

[Bug c++/55080] -pedantic produces error: floating-point literal cannot appear in a constant-expression

2015-04-29 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55080

--- Comment #4 from Manuel López-Ibáñez  ---
This should be an easy fix once a solution and the text is agreed.

[Bug c++/55080] -pedantic produces error: floating-point literal cannot appear in a constant-expression

2012-10-26 Thread redi at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55080



Jonathan Wakely  changed:



   What|Removed |Added



 Status|UNCONFIRMED |NEW

   Last reconfirmed||2012-10-26

 Ever Confirmed|0   |1



--- Comment #2 from Jonathan Wakely  2012-10-26 
12:10:43 UTC ---

cp_parser_primary_expression in parser.c only calls

cp_parser_non_integral_constant_expression (which prints the error) when

pedantic is false


[Bug c++/55080] -pedantic produces error: floating-point literal cannot appear in a constant-expression

2012-10-26 Thread manu at gcc dot gnu.org

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55080

Manuel López-Ibáñez  changed:

   What|Removed |Added

   Keywords|accepts-invalid |diagnostic
 CC|fang at csl dot |
   |cornell.edu, matz at suse   |
   |dot de, papadopo at shfj|
   |dot cea.fr, rearnsha at gcc |
   |dot gnu.org, rguenth at gcc |
   |dot gnu.org, rnewman at |
   |compubrite dot com  |
 Depends on|11393   |

--- Comment #1 from Manuel López-Ibáñez  2012-10-26 
11:40:05 UTC ---
I shouldn't have used clone bug...