You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a simple progam that just read a JSON file, parses it and dumps the result. It appears that the output is not the same when compiled with GCC or Clang, and the GCC executable seems to produce an error: the input JSON is encapsulated in an extraneous array.
Here is a simple makefile to try it (the content of main.cpp is given later):
Description
I wrote a simple progam that just read a JSON file, parses it and dumps the result. It appears that the output is not the same when compiled with GCC or Clang, and the GCC executable seems to produce an error: the input JSON is encapsulated in an extraneous array.
Here is a simple makefile to try it (the content of
main.cpp
is given later):Reproduction steps
Simply read and parse the following JSON:
Expected vs. actual results
The expected output would be identical to the input:
But I get
This only occurs using GCC, not with Clang or Clang-cl.
Minimal code example
Error messages
No response
Compiler and operating system
g++ (GCC) 12.2.0
(occuring) andclang version 14.0.6
(not occuring). OS is5.13.19-2-MANJARO
Library version
3.11.2
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: