[LLVMbugs] [Bug 14809] New: bad error message on invalid ::

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 4 17:34:00 PST 2013


             Bug #: 14809
           Summary: bad error message on invalid ::
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

As an extension (as far as I can tell) gcc accepts 

enum foo {x, y};
foo f();
class A {
  friend foo ::f();

we say:

/test.ii:4:16: error: C++ requires a type specifier for all declarations
  friend foo ::f();
  ~~~~~~       ^

It would be awesome to suggest () around ::f().

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