Open
Description
clang-repl raises "Duplicate Definition of Symbol", when creating an object with an out-of-line virtual function.
clang-repl> struct Klass { virtual int get_value(); };
clang-repl> int Klass::get_value() { return 0; }
clang-repl> auto x1 = Klass();
error: Duplicate definition of symbol '_ZTV5Klass'
clang-repl> %quit
But if the virtual function in defined within the class, it does not raise the error:
clang-repl> struct Klass { virtual int get_value() { return 0; } };
clang-repl> auto x1 = Klass();
clang-repl> %quit