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]

Long Long Int and gcc2.95


gcc 2.95:

In iostream.h, long long int operators are guarded by:

#if defined(__GNUC__)
    __extension__ ostream& operator<<(long long n);
    __extension__ ostream& operator<<(unsigned long long n);
#endif

But in the .cc file, by:

#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
ostream& ostream::operator<<(long long n)

Is there a reason for this inconsistency? I'd like to use long long int with  
-ansi, so I specify -Wno-long-long. But that no longer works, because the  
code is no longer in the library. It worked OK in egcs 1.1.2.

Please answer via email, because the list-lords don't deign to send to  
Earthlink addresses.

---
Where diesel guitars from faraway bars, blast out the
best songs from our holy wars. Coyote carnival catches
on fire, all the cops in the world pick us up on radar.
Jim McKelvey  mckelvey@fafnir.com


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