Skip to content

Support __is_standard_layout and __is_literal_type for gcc compatibility #9956

@llvmbot

Description

@llvmbot
Bugzilla Link 9584
Resolution FIXED
Resolved on May 20, 2011 10:04
Version trunk
OS All
Blocks #9955
Reporter LLVM Bugzilla Contributor
CC @chandlerc,@DougGregor

Extended Description

$ cat test2.cc
void foo() {
__is_standard_layout(int);
}
$ ./clang++ -std=gnu++0x -c test2.cc
test2.cc:2:29: error: expected '(' for function-style cast or type construction
__is_standard_layout(int);
~~~^
1 error generated.
$ g++-mp-4.6 -std=gnu++0x -c test2.cc
$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++11

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions