[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2008-02-22 Thread jason at gcc dot gnu dot org


--- Comment #19 from jason at gcc dot gnu dot org  2008-02-22 18:03 ---
Seems Darwin doesn't track the source position of undefined symbol references. 
Feel free to improve the testcase.


-- 


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2008-02-22 Thread pinskia at gcc dot gnu dot org


--- Comment #18 from pinskia at gcc dot gnu dot org  2008-02-22 17:50 
---
g++.dg/other/anon5.C fails on i386-darwin:
/var/tmp//ccpes1Oj.s:20:non-relocatable subtraction expression,
"__ZN12_GLOBAL__N_11c1tE" minus "L001$pb"^M
/var/tmp//ccpes1Oj.s:20:symbol: "__ZN12_GLOBAL__N_11c1tE" can't be undefined in
a subtraction expression^M
compiler exited with status 1
output is:
/var/tmp//ccpes1Oj.s:20:non-relocatable subtraction expression,
"__ZN12_GLOBAL__N_11c1tE" minus "L001$pb"^M
/var/tmp//ccpes1Oj.s:20:symbol: "__ZN12_GLOBAL__N_11c1tE" can't be undefined in
a subtraction expression^M


-- 


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2008-02-11 Thread jason at gcc dot gnu dot org


--- Comment #17 from jason at gcc dot gnu dot org  2008-02-12 06:41 ---
Fixed for 4.3.0 and 4.2.4.


-- 

jason at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2008-02-11 Thread jason at gcc dot gnu dot org


--- Comment #16 from jason at gcc dot gnu dot org  2008-02-12 06:38 ---
Subject: Bug 34094

Author: jason
Date: Tue Feb 12 06:37:34 2008
New Revision: 132254

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132254
Log:
PR c++/34094
* decl2.c (cp_write_global_declarations): Don't write out static
data members with DECL_IN_AGGR_P set.

PR c++/33916
* Revert:
2006-10-17  Mark Mitchell  <[EMAIL PROTECTED]>
PR c++/29039
* typeck2.c (build_functional_cast): Don't zero-initialize
non-PODs; instead, call their constructors.

Removed:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/init/ctor8.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/decl2.c
branches/gcc-4_2-branch/gcc/cp/typeck2.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2008-02-10 Thread jason at gcc dot gnu dot org


--- Comment #15 from jason at gcc dot gnu dot org  2008-02-10 18:12 ---
Subject: Bug 34094

Author: jason
Date: Sun Feb 10 18:12:01 2008
New Revision: 132218

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132218
Log:
PR c++/34094
* decl2.c (cp_write_global_declarations): Don't write out static
data members with DECL_IN_AGGR_P set.

Added:
trunk/gcc/testsuite/g++.dg/other/anon5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c


-- 


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2008-02-10 Thread jason at gcc dot gnu dot org


-- 

jason at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2007-11-20 18:00:56 |2008-02-10 16:34:00
   date||


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2008-02-01 Thread jsm28 at gcc dot gnu dot org


--- Comment #14 from jsm28 at gcc dot gnu dot org  2008-02-01 16:55 ---
4.2.3 is being released now, changing milestones of open bugs to 4.2.4.


-- 

jsm28 at gcc dot gnu dot org changed:

   What|Removed |Added

   Target Milestone|4.2.3   |4.2.4


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2007-12-18 Thread pinskia at gcc dot gnu dot org


--- Comment #13 from pinskia at gcc dot gnu dot org  2007-12-18 23:52 
---
(In reply to comment #12)
> Note that the simple class is correct, but the template instance is not.

Well it was reverted :).  See PR 34238 for the reasons why.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

  BugsThisDependsOn||34238


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2007-12-18 Thread crowl at google dot com


--- Comment #12 from crowl at google dot com  2007-12-18 23:46 ---
I think the last fix is incomplete:

namespace {
struct simple  { static const int size = 4; };
template< typename T >
struct generic { static const int size = 4; };
}

struct instantiate {
simple simple_var;
generic< int > generic_var;
};

member.cc:4: error: static data member '::generic::size' used,
but not defined

Note that the simple class is correct, but the template instance is not.


-- 


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2007-12-12 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2007-12-11 Thread jakub at gcc dot gnu dot org


--- Comment #11 from jakub at gcc dot gnu dot org  2007-12-11 08:48 ---
Unassigning myself.


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|jakub at gcc dot gnu dot org|unassigned at gcc dot gnu
   ||dot org
 Status|ASSIGNED|NEW
Summary|[4.2 Regression] Undefined  |[4.2/4.3 Regression]
   |static data member in   |Undefined static data member
   |anonymous namespace can |in anonymous namespace can
   |acquire a definition anyway |acquire a definition anyway


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2007-11-22 Thread jakub at gcc dot gnu dot org


--- Comment #6 from jakub at gcc dot gnu dot org  2007-11-22 14:06 ---
Subject: Bug 34094

Author: jakub
Date: Thu Nov 22 14:06:06 2007
New Revision: 130351

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130351
Log:
PR c++/34094
* decl2.c (cp_write_global_declarations): Issue error about static
data members in anonymous namespace which are declared and used,
but not defined.

* g++.dg/ext/visibility/anon7.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/ext/visibility/anon7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2007-11-20 Thread jakub at gcc dot gnu dot org


--- Comment #5 from jakub at gcc dot gnu dot org  2007-11-20 18:00 ---
Testing a fix.


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2007-11-19 05:22:22 |2007-11-20 18:00:56
   date||


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



[Bug c++/34094] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway

2007-11-18 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2007-11-19 05:22 ---
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||wrong-code
   Last reconfirmed|-00-00 00:00:00 |2007-11-19 05:22:22
   date||
Summary|Undefined static data member|[4.2/4.3 Regression]
   |in anonymous namespace can  |Undefined static data member
   |acquire a definition anyway |in anonymous namespace can
   ||acquire a definition anyway
   Target Milestone|--- |4.2.3


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