Summary: | [4.2 Regression] link fails with debug and anonymous namespace | ||
---|---|---|---|
Product: | gcc | Reporter: | Peter Naulls <peter> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | critical | CC: | amodra, fang, gcc-bugs, gcc, geoffk, hubicka, janis, jason, marcus, peter, pinskia |
Priority: | P1 | Keywords: | link-failure |
Version: | 4.2.0 | ||
Target Milestone: | 4.2.0 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2006-10-11 02:48:51 | |
Bug Depends on: | 27657 | ||
Bug Blocks: | |||
Attachments: | minimal test case |
Description
Peter Naulls
2006-10-10 16:16:11 UTC
Created attachment 12405 [details]
minimal test case
Reducing. Reduced testcase: template <int> struct lambda_functor { lambda_functor() {} }; namespace { lambda_functor<2 > free2; lambda_functor<3 > free3; lambda_functor<3 > & _3 = free3; } int main (void){} A regression hunt on powerpc-linux identified the following patch: http://gcc.gnu.org/viewcvs?view=rev&rev=115086 r115086 | jason | 2006-06-30 01:15:56 +0000 (Fri, 30 Jun 2006) (In reply to comment #5) > A regression hunt on powerpc-linux identified the following patch: This just confirms the problem here is the same as listed in PR 27657 as that patch cause anonymous namespace to be local linkage. Closing as a dup of PR 27657. *** This bug has been marked as a duplicate of 27657 *** |