The inexistent type long long double is recognized by the compiler and treated as long long int. A long long double should either not exist or be a floating point type having same or better precision than long double. The code is one line long. Release: 3.0.4 Environment: FreeBSD 4.5 Release How-To-Repeat: compile the attached programm. It will print a warning about assigning a floating type litteral to an integer. Th problem disappear with option --pedantic error since long long is recognized illegal with this option.
State-Changed-From-To: open->analyzed State-Changed-Why: Confirmed. Still present in 3.1 branch and trunk.
*** Bug 11200 has been marked as a duplicate of this bug. ***
still present in 3.4 and 20040613 HEAD [ was submitted as http://bugs.debian.org/247112 ]
Mainline is fixed. pr6634.i:1: error: both 'long long' and 'double' in declaration specifiers So is 3.4.4 and 3.3.2 pr6634.i:1: error: long or short specified with floating type for `a' pr6634.i:1: error: the only valid combination is `long double' Closing since all active branches are fixed.
Subject: Re: wrong parsing of "long long double" On Tue, 30 Nov 2004, amodra at bigpond dot net dot au wrote: > Mainline is fixed. > pr6634.i:1: error: both 'long long' and 'double' in declaration specifiers > > So is 3.4.4 and 3.3.2 > pr6634.i:1: error: long or short specified with floating type for `a' > pr6634.i:1: error: the only valid combination is `long double' > > Closing since all active branches are fixed. This is a C++ bug report. Why are you closing it based on tests with the C compiler?
No this isn't fixed. It works with the C frontend since 2.95.x, but not with the C++ frontend.
Mine.
Subject: Bug number PR c++/6634 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-03/msg00334.html
Subject: Bug 6634 Author: reichelt Date: Wed Mar 15 15:27:11 2006 New Revision: 112084 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112084 Log: PR c++/6634 decl.c (grokdeclarator): Do not accept long long double. Reorganize checks for invalid (combinations of) type modifiers. Quote modifiers in messages. g++.dg/parse/long1.C: New test. Added: trunk/gcc/testsuite/g++.dg/parse/long1.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog
Fixed on mainline.
Subject: Bug number PR c++/6634 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg01267.html
Subject: Bug 6634 Author: reichelt Date: Mon Jul 31 22:52:20 2006 New Revision: 115843 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115843 Log: PR c++/6634 * decl.c (grokdeclarator): Check whether "long" or "short" was specified for non-integral types. * g++.dg/parse/long1.C: Add more tests. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/parse/long1.C
*** Bug 32888 has been marked as a duplicate of this bug. ***