[LLVMbugs] [Bug 8021] New: clang c++ strange error for declaration which doesn't declare anything in template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 29 12:29:30 PDT 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list