The following is a minimal reproducer of a syntaxError that we encountered in our code base. The real example was much less evident as it was split over many includes:
namespace NS1 { typedef NS2::Bar Bar; using NS2::MyType; } enum E : unsigned int { zero = 0, MyType = 1 }; namespace NS1 { }
results in
test.cxx:6:1: error: syntax error [syntaxError] enum E : unsigned int { ^
Change or remove any one line, or rename one of the "MyType", and the error goes away.
https://trac.cppcheck.net/ticket/13451
Log in to post a comment.
The following is a minimal reproducer of a syntaxError that we encountered in our code base. The real example was much less evident as it was split over many includes:
results in
Change or remove any one line, or rename one of the "MyType", and the error goes away.
https://trac.cppcheck.net/ticket/13451