Bug 29940 - A variable named _S exists without declaration
Summary: A variable named _S exists without declaration
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.2
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-22 15:03 UTC by Boris Breidenbach
Modified: 2006-11-22 16:45 UTC (History)
1 user (show)

See Also:
Host: i386-pc-solaris2.8
Target: i386-pc-solaris2.8
Build: i386-pc-solaris2.8
Known to work:
Known to fail:
Last reconfirmed:


Attachments
output of g++ -E (81.63 KB, application/octet-stream)
2006-11-22 15:05 UTC, Boris Breidenbach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Breidenbach 2006-11-22 15:03:53 UTC
This program compiles:

#include <iostream>

int main()
{
    std::cout << _S << std::endl;
    
    return 0;
    
}

If started, it outputs : 8

output of my g++ -v:

Reading specs from /opt/csw/gcc4/lib/gcc/i386-pc-solaris2.8/4.0.2/specs
Target: i386-pc-solaris2.8
Configured with: ../sources/gcc-4.0.2/configure --prefix=/opt/csw/gcc4 --with-local-prefix=/opt/csw --with-gnu-as --with-as=/opt/csw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-shared --enable-multilib --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --with-system-zlib --enable-languages=c,c++,f95,java,objc,ada
Thread model: posix
gcc version 4.0.2
Comment 1 Boris Breidenbach 2006-11-22 15:05:33 UTC
Created attachment 12667 [details]
output of g++ -E
Comment 2 Andrew Pinski 2006-11-22 16:45:15 UTC
_S is in the reserved identifiers for implemenation so ...


Closing as invalid.