public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43145] local extern declaration gets wrong namespace
2010-02-22 20:49 [Bug c++/43145] New: local extern declaration gets wrong namespace jason at gcc dot gnu dot org
@ 2010-02-22 20:49 ` jason at gcc dot gnu dot org
2010-02-22 20:50 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-02-22 20:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jason at gcc dot gnu dot org 2010-02-22 20:49 -------
Created an attachment (id=19937)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19937&action=view)
patch for 4.6
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43145
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43145] New: local extern declaration gets wrong namespace
@ 2010-02-22 20:49 jason at gcc dot gnu dot org
2010-02-22 20:49 ` [Bug c++/43145] " jason at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-02-22 20:49 UTC (permalink / raw)
To: gcc-bugs
For this testcase:
namespace N {
void f();
}
void N::f()
{
extern int i;
extern void g();
i = 1;
g();
}
namespace N {
int i;
void g() { }
}
int main() { }
we end up with unsatisfied references to ::i and ::g.
--
Summary: local extern declaration gets wrong namespace
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: wrong-code, patch
Severity: normal
Priority: P3
Component: c++
AssignedTo: jason at gcc dot gnu dot org
ReportedBy: jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43145
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43145] local extern declaration gets wrong namespace
2010-02-22 20:49 [Bug c++/43145] New: local extern declaration gets wrong namespace jason at gcc dot gnu dot org
2010-02-22 20:49 ` [Bug c++/43145] " jason at gcc dot gnu dot org
@ 2010-02-22 20:50 ` jason at gcc dot gnu dot org
2010-03-13 1:29 ` pinskia at gcc dot gnu dot org
2010-05-04 4:51 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-02-22 20:50 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-02-22 20:50:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43145
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43145] local extern declaration gets wrong namespace
2010-02-22 20:49 [Bug c++/43145] New: local extern declaration gets wrong namespace jason at gcc dot gnu dot org
2010-02-22 20:49 ` [Bug c++/43145] " jason at gcc dot gnu dot org
2010-02-22 20:50 ` jason at gcc dot gnu dot org
@ 2010-03-13 1:29 ` pinskia at gcc dot gnu dot org
2010-05-04 4:51 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-13 1:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-13 01:29 -------
If f is done inside "namespace N{}", it works
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
OtherBugsDependingO| |41998
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43145
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43145] local extern declaration gets wrong namespace
2010-02-22 20:49 [Bug c++/43145] New: local extern declaration gets wrong namespace jason at gcc dot gnu dot org
` (2 preceding siblings ...)
2010-03-13 1:29 ` pinskia at gcc dot gnu dot org
@ 2010-05-04 4:51 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-05-04 4:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2010-05-04 04:51 -------
Fixed for 4.6.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43145
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-04 4:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-22 20:49 [Bug c++/43145] New: local extern declaration gets wrong namespace jason at gcc dot gnu dot org
2010-02-22 20:49 ` [Bug c++/43145] " jason at gcc dot gnu dot org
2010-02-22 20:50 ` jason at gcc dot gnu dot org
2010-03-13 1:29 ` pinskia at gcc dot gnu dot org
2010-05-04 4:51 ` jason at gcc dot gnu dot org
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).