public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10173: g++ wrongly assumes a namespace of a function based on the namespace of the function's argument
@ 2003-03-21  0:32 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-03-21  0:32 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jlawson-gcc, nobody

Synopsis: g++ wrongly assumes a namespace of a function based on the namespace of the function's argument

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Fri Mar 21 00:31:59 2003
State-Changed-Why:
    Not a bug. See Koenig lookup a.k.a. argument dependent name
    lookup.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10173


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c++/10173: g++ wrongly assumes a namespace of a function based on the namespace of the function's argument
@ 2003-03-21  0:26 jlawson-gcc
  0 siblings, 0 replies; 2+ messages in thread
From: jlawson-gcc @ 2003-03-21  0:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10173
>Category:       c++
>Synopsis:       g++ wrongly assumes a namespace of a function based on the namespace of the function's argument
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 21 00:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     jlawson-gcc@bovine.net
>Release:        g++ (GCC) 3.2
>Organization:
>Environment:
Linux redhat 7.2, (Red Hat Linux Rawhide g++ 3.2-1)
>Description:
g++ compiles the attached example, even though I don't think the compiler should assume the scope of the bork() function.

g++ does not assume the scope of the function if it does not take an argument that also a member of that namespace.
>How-To-Repeat:
g++ testnamespace.cpp
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="testnamespace.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="testnamespace.cpp"

bmFtZXNwYWNlIG1vbyB7CiAgICBzdHJ1Y3QgY293IHsKICAgICAgICBpbnQgYXNkZjsKICAgIH07
CiAgICAKICAgIHZvaWQgYm9yayhtb286OmNvdywgaW50IGkpIHt9Cn0KCnZvaWQgZG9pdCgpCnsK
ICAgIG1vbzo6Y293IHZhcjsKICAgIHZhci5hc2RmID0gMTsKCiAgICBib3JrKHZhciwgMSk7IC8v
IHNob3VsZCByZXF1aXJlIG1vbzo6Ym9yayh2YXIpCn0K


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-21  0:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-21  0:32 c++/10173: g++ wrongly assumes a namespace of a function based on the namespace of the function's argument bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-03-21  0:26 jlawson-gcc

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).