Template Variable Specialization Error: "variable xx has already been initialized" #3110
Labels
bug
fixed
Check the Milestone for the release in which the fix is or will be available.
Language Service
Visual Studio
Inherited from Visual Studio
Milestone
Type: LanguageService
Describe the bug
In the json parser that I am working on, I am using template variables as a part of my parser so that my parser would work with all types of
char
s in C++. The file that's causing the problem looks like the following snippet, but with a lot more template variables.The clang++ compiler that I have on my mac (Apple LLVM version 10.0.0 (clang-1000.11.45.5)) compiles the code just fine, but vs code produces the following error:
To Reproduce
settings.json
as follows(The actual project file that's causing the error looks very similar to this, but with a lot more template variables used in the json parser and does not have the main function. I am happy to provide the source code if needed.)
Expected behavior
There should be no errors from the plugin, as the compiler compiles the code just fine.
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: