| Issue |
164596
|
| Summary |
[clang-repl] Duplicate definition error for symbols while run in C mode
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
anutosh491
|
Something like this fails
Example 1
```
anutosh491@Anutoshs-MacBook-Air bin % ./clang-repl --Xcc=-x --Xcc=c --Xcc=-std=c23
clang-repl> #include <stdio.h>
clang-repl> char *p;
clang-repl> printf("ok\n");
error: Duplicate definition of symbol '_p'
```
OR
Example 2
```
anutosh491@Anutoshs-MacBook-Air bin % ./clang-repl --Xcc=-x --Xcc=c --Xcc=-std=c23
clang-repl> int x;
clang-repl> int y;
error: Duplicate definition of symbol '_x'
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs