Summary: | [3.3 regression] ICE on illegal code using templates and inheritance | ||
---|---|---|---|
Product: | gcc | Reporter: | neil.ferguson |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | gcc-bugs |
Priority: | P3 | Keywords: | ice-on-invalid-code |
Version: | 3.2.1 | ||
Target Milestone: | 3.3.1 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2003-06-02 09:09:06 | |
Attachments: | failure.cxx |
Description
neil.ferguson
2003-01-14 08:46:01 UTC
Fix: None known (write legal code :-) State-Changed-From-To: open->analyzed State-Changed-Why: Confirmed. The code ICEs with 3.0, 3.2 and 3.3. It produced a useful error with 2.95, and with present 3.4. Here's the code, for simpler cut-n-pasting: ----------------------- template<typename T> class A {}; template<typename T> class B {}; template<typename T> class B<T>::C : public A<T> {}; ----------------------- W. |