summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/crash1.C
blob: cd90685c70d5a686f5a7f3cd495dfaca57f4c1c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// { dg-do compile }

// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 25 Aug 2003 <nathan@codesourcery.com>
// Origin pr 11871 Dirk Mueller <mueller@kde.org>

// PR c++/11871 Regression

namespace std
{
  class A
  {
  public:
    enum result
    {
      ok
    };
  };

  template<typename T> class B : public A
    {
    public:
      typedef A::result	result;
    };
}

int main()
{
  for(float result = 1.0;;);
}