Summary: | [4.2 Regression] Bug in processing nested typedef in nested template class in method definition | ||
---|---|---|---|
Product: | gcc | Reporter: | Wirawan Purwanto <wirawan0> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fang, gcc-bugs |
Priority: | P3 | Keywords: | rejects-valid |
Version: | 4.2.1 | ||
Target Milestone: | 4.3.0 | ||
Host: | i686-pc-linux-gnu | Target: | i686-pc-linux-gnu |
Build: | i686-pc-linux-gnu | Known to work: | 4.1.1 4.3.0 |
Known to fail: | 4.1.2 4.2.5 | Last reconfirmed: | 2008-01-29 15:32:29 |
Attachments: | Sample code to cause compilation error. |
Description
Wirawan Purwanto
2008-01-29 02:35:09 UTC
The first snippet works for me, the second says t.C:3: error: expected nested-name-specifier before 'outer1' t.C:3: error: too many template-parameter-lists t.C: In function 'void testme()': t.C:11: error: 'outer1' was not declared in this scope t.C:11: error: expected primary-expression before 'float' t.C:11: error: expected `;' before 'float' t.C:12: error: 'Inner1' was not declared in this scope so - what is the testcase that you are looking at? The whole snippet must be included the (un)desirable error to show up. Let me give an attachment to make it clear. Created attachment 15047 [details]
Sample code to cause compilation error.
*** Bug 35016 has been marked as a duplicate of this bug. *** I believe we have a dup for this somewhere. Broken on the 4.1 and 4.2 branch. Closing 4.2 branch, fixed in 4.3. |