Bug 16073 - [3.4 Regression] ICE on invalid code
Summary: [3.4 Regression] ICE on invalid code
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: 3.4.1
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2004-06-19 10:15 UTC by Ivan Godard
Modified: 2004-09-09 23:40 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work: 4.0 3.3.3
Known to fail: 3.4.0
Last reconfirmed: 2004-06-19 16:24:13


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Godard 2004-06-19 10:15:22 UTC
Test case:

template<typename T>
struct  A {
    template<int n>
    struct B {
        void Foo();
        };
    };

template<typename T>
void A<T>::B::Foo() {};

template<typename T>
template<>
void A<T>::B<1>::Foo(){};

int main() {
    return 0;
    }
Comment 1 Andrew Pinski 2004-06-19 16:24:13 UTC
I can confirm this in 3.4.0 and not in 3.5.0 but it is still a regression, I do not have a compiler from the 
3.4 branch to know if it is fixed on the branch.
Comment 2 Wolfgang Bangerth 2004-06-19 19:38:22 UTC
Yes, this is fixed on the 3.4 branch. 
 
W.