public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: "Chris Kappler" <ckappler@cisco.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: RE: Re: c++/9726: namespace typedef hides global Date: Tue, 01 Apr 2003 19:56:00 -0000 [thread overview] Message-ID: <20030401195600.17502.qmail@sources.redhat.com> (raw) 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--
reply other threads:[~2003-04-01 19:56 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030401195600.17502.qmail@sources.redhat.com \ --to=ckappler@cisco.com \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).