[LLVMdev] C++ 11 explicit keyword error

Alessio Giovanni Baroni alessiogiovanni.baroni at gmail.com
Tue Apr 8 03:55:00 PDT 2014


Hi,

I’m on Mac OS X 10.9.2 with all last updates; if I have this source:

class xxx explicit
{
};

int main (int argc, char **argv)
{

    return 0;
}

and I compile it with clang++ -std=c++11 -Wall -pedantic -c I obtain this error:

nn:1: error: expected unqualified-id
{
^
1 error generated.

But the C++ 11 standard permits explicit on classes.

It’s a bug?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140408/2c4b7d6c/attachment.html>


More information about the llvm-dev mailing list