public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* RE: Re: c++/9726: namespace typedef hides global
@ 2003-04-01 19:56 Chris Kappler
0 siblings, 0 replies; only message in thread
From: Chris Kappler @ 2003-04-01 19:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/9726; it has been noted by GNATS.
From: "Chris Kappler" <ckappler@cisco.com>
To: "'Chris Kappler'" <ckappler@cisco.com>, <gcc-gnats@gcc.gnu.org>,
<gcc-bugs@gcc.gnu.org>, <nobody@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>,
<joerg.richter@pdv-fs.de>
Cc:
Subject: RE: Re: c++/9726: namespace typedef hides global
Date: Tue, 1 Apr 2003 14:48:12 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0037_01C2F85D.B9191170
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
trying again after spam blocker replied to me.
-----Original Message-----
From: Chris Kappler [mailto:ckappler@cisco.com]
Sent: Tuesday, April 01, 2003 2:40 PM
To: 'gcc-gnats@gcc.gnu.org'; 'gcc-bugs@gcc.gnu.org'; 'nobody@gcc.gnu.org';
'gcc-prs@gcc.gnu.org'; 'joerg.richter@pdv-fs.de'
Subject: Re: c++/9726: namespace typedef hides global
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=97
26
I have attached an example of this bug for which the stated workaround is not
sufficient. When including libraries, this type of situation can easily arise.
I have been playing with include order, but I'm running out of flexibility.
gcc version 3.2 20020927 (prerelease)
------=_NextPart_000_0037_01C2F85D.B9191170
Content-Type: application/octet-stream;
name="nmsp.cpp"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="nmsp.cpp"
=0A=
=0A=
typedef unsigned char uchar; // comment this out and it compiles (a)=0A=
=0A=
namespace hide_stuff {=0A=
=0A=
typedef unsigned char uchar;=0A=
uchar a,b,c;=0A=
=0A=
};=0A=
=0A=
=0A=
#include <iostream>=0A=
=0A=
using namespace hide_stuff; // OR comment this out and it compiles (b)=0A=
=0A=
int main() {=0A=
=0A=
uchar d =3D 5;=0A=
=0A=
//cout<<a<<endl;=0A=
int q =3D 1;=0A=
q *=3D d;=0A=
std::cout<<q<<std::endl;=0A=
}=0A=
------=_NextPart_000_0037_01C2F85D.B9191170--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-01 19:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-01 19:56 Re: c++/9726: namespace typedef hides global Chris Kappler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).