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]

[Bug c++/11200] New: C++ front end accepts long long double


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: C++ front end accepts long long double
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: conley.141@osu.edu
                CC: gcc-bugs@gcc.gnu.org
 GCC build triplet: 3.4 20030612
  GCC host triplet: i686-pc-cygwin
GCC target triplet: 1686-pc-cygwin

The C++ front end will compile the following with a warning:

int main () {
  long long double d = 3.14; // sets d = 3 (type of d is long long)
  return 0;
}

Trying the same code with the C front end gives an error.


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