-
Bug
-
Resolution: Fixed
-
Medium
-
Code Generation Tools
-
CODEGEN-9023
-
-
-
default
The attached file.cpp has these lines in it ...
struct X { const char *name; constexpr X(const char *n) : name(n) {} static constexpr X x1() { return X("x1"); } static constexpr X x2() { return X("x2"); } }; void f() { X::x1(); X::x2(); }
Build it ...
% cl6x -s file.cpp "file.asm", ERROR! at line 58: [E0300] Symbol _ZZ1fvEs has already been defined .bits 0x78,8 1 Assembly Error, No Assembly Warnings Errors in Source - Assembler Aborted >> Compilation failure
Inspect file.asm to see that two strings "x1" and "x2" are created, but they both have the same label _ZZ1fvEs.