public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32888]  New: Declared long long double has wrong type
@ 2007-07-25  2:24 igodard at pacbell dot net
  2007-07-25  2:36 ` [Bug c++/32888] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: igodard at pacbell dot net @ 2007-07-25  2:24 UTC (permalink / raw)
  To: gcc-bugs

The code:
int main() {
    long long double x;
    long long double v = 0.0;
    }

gets you:
~/ootbc/common$ g++ foo.cc
foo.cc: In function 'int main()':
foo.cc:3: warning: converting to 'long long int' from 'double'

Either "long long double" is illegal and should be flagged on both
declarations, or it is legal and should give you a floating point type not
"long long int".


-- 
           Summary: Declared long long double has wrong type
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/32888] Declared long long double has wrong type
  2007-07-25  2:24 [Bug c++/32888] New: Declared long long double has wrong type igodard at pacbell dot net
@ 2007-07-25  2:36 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-25  2:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-07-25 02:35 -------


*** This bug has been marked as a duplicate of 6634 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-25  2:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-25  2:24 [Bug c++/32888] New: Declared long long double has wrong type igodard at pacbell dot net
2007-07-25  2:36 ` [Bug c++/32888] " 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).