Skip to content

llvm-clang/clang/include/clang/AST/Expr.h:1840 #364

@IngeniariusSoftware

Description

@IngeniariusSoftware

remove the line if it fixed in the testcuite:

00220: TODO /home/maksim/Projects/c2eo/project/src/transpiler/../../../llvm-clang/clang/include/clang/AST/Expr.h:1840: llvm::StringRef clang::StringLiteral::getString() const: Assertion `getCharByteWidth() == 1 && "This function is used in places that assume strings use char"' failed. exception: SIGABRT with code -6 while tool run

the test:
https://github.com/c-testsuite/c-testsuite/blob/master/tests/single-exec/00220.c

// this file contains BMP chars encoded in UTF-8
#include <stdio.h>
#include <wchar.h>

int main()
{
    wchar_t s[] = L"hello$$你好¢¢世界€€world";
    wchar_t *p;
    for (p = s; *p; p++) printf("%04X ", (unsigned) *p);
    printf("\n");
    return 0;
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions