We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
clang-repl raises "Duplicate Definition of Symbol", when creating an object with an out-of-line virtual function.
But if the virtual function in defined within the class, it does not raise the error:
The text was updated successfully, but these errors were encountered: