public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/31924] New: gcc accepts invalid suffixes for decimal float constants @ 2007-05-14 20:50 janis at gcc dot gnu dot org 2007-05-14 23:43 ` [Bug c/31924] " janis at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: janis at gcc dot gnu dot org @ 2007-05-14 20:50 UTC (permalink / raw) To: gcc-bugs The change to the C preprocessor to recognize "df", "dd", and "dl" as suffixes for decimal floating point constants also allows "fd" and "ld"; a check for that assumed that the the letters are examined from left to right, but they are examined from right to left. There are no errors for the following: double a = 1.ld; double b = 1.fd; I'm testing a fix, but wanted a PR to reference for a patch to the 4.2 branch. -- Summary: gcc accepts invalid suffixes for decimal float constants Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P3 Component: c AssignedTo: janis at gcc dot gnu dot org ReportedBy: janis at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31924 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/31924] gcc accepts invalid suffixes for decimal float constants 2007-05-14 20:50 [Bug c/31924] New: gcc accepts invalid suffixes for decimal float constants janis at gcc dot gnu dot org @ 2007-05-14 23:43 ` janis at gcc dot gnu dot org 2007-05-21 21:17 ` janis at gcc dot gnu dot org 2007-06-24 3:49 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: janis at gcc dot gnu dot org @ 2007-05-14 23:43 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from janis at gcc dot gnu dot org 2007-05-15 00:43 ------- Subject: Bug 31924 Author: janis Date: Mon May 14 23:43:07 2007 New Revision: 124730 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124730 Log: libcpp/ PR c/31924 * expr.c (interpret_float_suffix): Check for invalid suffix. gcc/testsuite/ PR c/31924 * gcc.dg/fltconst-1.c: New test. Added: trunk/gcc/testsuite/gcc.dg/fltconst-1.c Modified: trunk/gcc/testsuite/ChangeLog trunk/libcpp/ChangeLog trunk/libcpp/expr.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31924 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/31924] gcc accepts invalid suffixes for decimal float constants 2007-05-14 20:50 [Bug c/31924] New: gcc accepts invalid suffixes for decimal float constants janis at gcc dot gnu dot org 2007-05-14 23:43 ` [Bug c/31924] " janis at gcc dot gnu dot org @ 2007-05-21 21:17 ` janis at gcc dot gnu dot org 2007-06-24 3:49 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: janis at gcc dot gnu dot org @ 2007-05-21 21:17 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from janis at gcc dot gnu dot org 2007-05-21 22:17 ------- Subject: Bug 31924 Author: janis Date: Mon May 21 21:17:23 2007 New Revision: 124913 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124913 Log: libcpp/ PR c/31924 * expr.c (interpret_float_suffix): Check for invalid suffix. gcc/testsuite/ PR c/31924 * gcc.dg/fltconst-1.c: New test. Modified: branches/ibm/gcc-4_1-branch/gcc/testsuite/ChangeLog branches/ibm/gcc-4_1-branch/libcpp/ChangeLog branches/ibm/gcc-4_1-branch/libcpp/expr.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31924 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/31924] gcc accepts invalid suffixes for decimal float constants 2007-05-14 20:50 [Bug c/31924] New: gcc accepts invalid suffixes for decimal float constants janis at gcc dot gnu dot org 2007-05-14 23:43 ` [Bug c/31924] " janis at gcc dot gnu dot org 2007-05-21 21:17 ` janis at gcc dot gnu dot org @ 2007-06-24 3:49 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2007-06-24 3:49 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from pinskia at gcc dot gnu dot org 2007-06-24 03:49 ------- Fixed. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31924 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-06-24 3:49 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-05-14 20:50 [Bug c/31924] New: gcc accepts invalid suffixes for decimal float constants janis at gcc dot gnu dot org 2007-05-14 23:43 ` [Bug c/31924] " janis at gcc dot gnu dot org 2007-05-21 21:17 ` janis at gcc dot gnu dot org 2007-06-24 3:49 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).