| Issue |
242349
|
| Summary |
Incorrect source location in diagnostic when encoding of string literal changes due to fexec-charset
|
| Labels |
new issue
|
| Assignees |
abhina-sree
|
| Reporter |
abhina-sree
|
#### Source (`<stdin>`):
```c
int printf(const char *, ...);
int main(void) {
printf("©©%s");
}
```
#### Compiler invocation:
```
clang -cc1 -fsyntax-only -fexec-charset ISO-8859-1 -xc -
```
#### Output:
```
<stdin>:3:14: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
3 | printf("©©%s");
| ^
1 warning generated.
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs