Skip to content

Clang + -fms-extensions: __FUNCSIG__ is not a literal #114

Closed
@vrubleg

Description

@vrubleg

__FUNCSIG__ is a literal in MSVC, so you can write something like this:

char Data[] = __FUNCSIG__;

Clang with -fms-extensions specified can't compile it:

error: array initializer must be an initializer list or string literal

Metadata

Metadata

Assignees

Labels

clang-cl`clang-cl` driver. Don't use for other compiler partsclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions