Skip to content

L'ab' is an error #163124

@tydeman

Description

@tydeman
#include <wchar.h>
int main(void){
  if(1){
    static wchar_t wc = L'ab';
  }
  return 0;
}

Fails to compile with this error:
test190.c:5:25: error: wide character literals may not contain multiple characters

C23 says in 6.4.4.5, paragraph 15 that this is implementation defined.

Since I cannot find the implementation documentation, I do not know if this is a
valid error or a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c23clang:frontendLanguage frontend issues, e.g. anything involving "Sema"duplicateResolved as duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions