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

           Summary: clang c++ strange error for declaration which doesn't
                    declare anything in template
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: quality-of-implementation
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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

clang error:
<stdin>:2:17: error: nested name specifier for a declaration cannot depend on a
      template parameter

It would be nice if the error were something more intelligible, like
"declaration does not declare anything".

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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