This is the mail archive of the gcc-bugs@gcc.gnu.org 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
>Closed-Date:
>Last-Modified:
>Originator:     santugi@dptmaths.ens-cachan.fr
>Release:        3.0.4
>Organization:
>Environment:
FreeBSD 4.5 Release
>Description:
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.
>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.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bugtest2.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bugtest2.C"

bG9uZyBsb25nIGRvdWJsZSBhPTEuNTc7Cg==


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