[LLVMbugs] [Bug 8382] New: wrong diagnostic on missing template arguments

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 14 16:08:51 PDT 2010


           Summary: wrong diagnostic on missing template arguments
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Consider this testcase:

  template <class T>
  class Foo {};
  class Bar : public Foo {};

the diagnostic clang produces is:

  b2973185.cc:3:20: error: expected class name
  class Bar : public Foo {};
  1 error generated.

which isn't quite right; Foo is a class name, so what's wrong here? It's that
Foo is a template and I didn't specify the template arguments. It'd be great if
clang pointed that out.

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