Home | History | Annotate | Download | only in dcl.init.ref
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 // PR5787
      4 class C {
      5  public:
      6   ~C() {}
      7 };
      8 
      9 template <typename T>
     10 class E {
     11  public:
     12   E& Foo(const C&);
     13   E& Bar() { return Foo(C()); }
     14 };
     15 
     16 void Test() {
     17   E<int> e;
     18   e.Bar();
     19 }
     20