[llvm-bugs] [Bug 28680] New: "error: expected unqualified-id" -- that's the entirety of the error message

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jul 23 17:07:59 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28680

            Bug ID: 28680
           Summary: "error: expected unqualified-id" -- that's the
                    entirety of the error message
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xaxxon at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

no filename, no line number, no nothing, except:

error: expected unqualified-id

Checking on godbolt, it seems to be a regression between 3.7.1 and 3.8.

https://godbolt.org/g/7Duczj

class Foo {
 static const char * string; 
};

#define MESSAGE_STUFF(type, string) \
    const char * type::string = string;

  MESSAGE_STUFF(Foo, "hello");

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160724/5157da82/attachment.html>


More information about the llvm-bugs mailing list