http://llvm.org/bugs/show_bug.cgi?id=19566

            Bug ID: 19566
           Summary: gcc-4.9 happy, but clang error: no template named
                    'B_'; did you mean 'X::B_'
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
    Classification: Unclassified

Clang produces and error for the following test case:

struct X {
  template<class T> struct B_ { T x; };
};
template<class T>
int foo(typename X::B_<T>) { return (&X::operator B_<T> ); }


$ clang-arm64-x++ -S foo.ii -w -o -
foo.ii:6:51: error: no template named 'B_'; did you mean 'X::B_'?
int foo(typename X::B_<T>) { return (&X::operator B_<T> ); }
                                                  ^~
X::B_                                                                           
foo.ii:3:28: note: 'X::B_' declared here

  template<class T> struct B_ { T x; };
                           ^
1 error generated.

However, the latest gcc-4.9 happily accepts this..  Richard? :D

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to