https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879

--- Comment #10 from Anders Granlund <anders.granlund.0 at gmail dot com> ---
Here comes two more test cases moved in from my related ICE on compile bug
reports:

namespace X {
    struct S;
    namespace Y {
        namespace Z = X;
        struct Z::S {};
    }
}
int main() {}

struct S;
namespace H {
    namespace P { using ::S; }
    struct P::S {};
}
int main() {}

The above programs bot gives ICE on compile (infinite recursion in
push_inner_scope_r -> stack overflow). They also involve trying to perform
redeclarations indirectly.

Reply via email to