[LLVMbugs] [Bug 8004] New: diagnostic points to function not keyword

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 26 19:02:18 PDT 2010


           Summary: diagnostic points to function not keyword
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com,
                    jyasskin at google.com

The "const" keyword makes this code invalid:

  static void func1(int a, int b,
                    int c, int d) const {

but the error from clang doesn't show the const at all, since it's pointing at
the func1:

$ clang++ -fsyntax-only b2954466.cc 
b2954466.cc:1:13: error: type qualifier is not allowed on this function
static void func1(int a, int b,
1 error generated.

It'd be awesome if we pointed to the "const" instead.

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