Having a C++ hell problem.

There's a namespace named "vendor", containing a class named "ClassName", containing an enum named "Status", containing a value named "Success".

There's code that compiles on Windows with MSVC and on MacOS with Clang. But on Linux with GCC, it fails; if I say vendor::ClassName::Success it says "expected unqualified-id before numeric constant" on Success and if I say "vendor::ClassName::Status::Success" it says "expected unqualified-id before 'int'" on Status.

(1/2)

gcc output as described
0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mcc/statuses/115929816192413742 on your instance and quote it. (Note that quoting is not supported in Mastodon.)