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

             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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to