public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/7313] variable declared but not defined with "C" linkage placed in enclosing namespace at link time
       [not found] <20020715074601.7313.sethjschroeder@aol.com>
@ 2003-06-03 15:44 ` pinskia@physics.uc.edu
  2003-11-09  0:55 ` pinskia at gcc dot gnu dot org
  2003-11-09  0:57 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-03 15:44 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7313



------- Additional Comments From pinskia@physics.uc.edu  2003-06-03 15:44 -------
I think this is related to bug 6548.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug c++/7313] variable declared but not defined with "C" linkage placed in enclosing namespace at link time
       [not found] <20020715074601.7313.sethjschroeder@aol.com>
  2003-06-03 15:44 ` [Bug c++/7313] variable declared but not defined with "C" linkage placed in enclosing namespace at link time pinskia@physics.uc.edu
@ 2003-11-09  0:55 ` pinskia at gcc dot gnu dot org
  2003-11-09  0:57 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-09  0:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-09 00:55 -------
*** Bug 6548 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sdouglass at arm dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7313


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

* [Bug c++/7313] variable declared but not defined with "C" linkage placed in enclosing namespace at link time
       [not found] <20020715074601.7313.sethjschroeder@aol.com>
  2003-06-03 15:44 ` [Bug c++/7313] variable declared but not defined with "C" linkage placed in enclosing namespace at link time pinskia@physics.uc.edu
  2003-11-09  0:55 ` pinskia at gcc dot gnu dot org
@ 2003-11-09  0:57 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-09  0:57 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-code                  |accepts-invalid
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-09 00:57:27
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7313


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

* [Bug c++/7313] variable declared but not defined with "C" linkage placed in enclosing namespace at link time
       [not found] <bug-7313-4@http.gcc.gnu.org/bugzilla/>
  2012-02-02  0:32 ` pinskia at gcc dot gnu.org
  2012-02-02  1:34 ` redi at gcc dot gnu.org
@ 2012-02-02  1:41 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2012-02-02  1:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7313

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-02 01:41:07 UTC ---
or if it is ill-formed, it's "no diagnostic required":
http://open-std.org/JTC1/SC22/WG21/docs/cwg_defects.html#564

I'm not sure whether the definitions find the same entities (and inherit their
language linkage) as the extern "C" declarations.


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

* [Bug c++/7313] variable declared but not defined with "C" linkage placed in enclosing namespace at link time
       [not found] <bug-7313-4@http.gcc.gnu.org/bugzilla/>
  2012-02-02  0:32 ` pinskia at gcc dot gnu.org
@ 2012-02-02  1:34 ` redi at gcc dot gnu.org
  2012-02-02  1:41 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2012-02-02  1:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7313

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-02 01:33:46 UTC ---
I disagree this is ill-formed, and I think G++ does the right thing


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

* [Bug c++/7313] variable declared but not defined with "C" linkage placed in enclosing namespace at link time
       [not found] <bug-7313-4@http.gcc.gnu.org/bugzilla/>
@ 2012-02-02  0:32 ` pinskia at gcc dot gnu.org
  2012-02-02  1:34 ` redi at gcc dot gnu.org
  2012-02-02  1:41 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-02  0:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7313

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 00:31:49 UTC ---
Testcase:
namespace foo
{
    extern "C" int bar;
    extern "C" int baz();
}

namespace foo
{
    int bar = -1;
    int baz() { return -1; }
}


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

end of thread, other threads:[~2012-02-02  1:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020715074601.7313.sethjschroeder@aol.com>
2003-06-03 15:44 ` [Bug c++/7313] variable declared but not defined with "C" linkage placed in enclosing namespace at link time pinskia@physics.uc.edu
2003-11-09  0:55 ` pinskia at gcc dot gnu dot org
2003-11-09  0:57 ` pinskia at gcc dot gnu dot org
     [not found] <bug-7313-4@http.gcc.gnu.org/bugzilla/>
2012-02-02  0:32 ` pinskia at gcc dot gnu.org
2012-02-02  1:34 ` redi at gcc dot gnu.org
2012-02-02  1:41 ` redi at gcc dot gnu.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).