This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/6634: illegal type "long long double" recognized as "long long int"

>Number:         6634
>Category:       c++
>Synopsis:       illegal type "long long double" recognized as "long long int"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 11 05:56:01 PDT 2002
>Release:        3.0.4
FreeBSD 4.5 Release
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.
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.

Content-Type: application/octet-stream; name="bugtest2.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bugtest2.C"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]