Skip to content

Conversation

@JacobCrabill
Copy link

Some of these should have been errors with GCC as well, such as attempting to 'extern C' C++ code that is not valid C.

The other issue was related to an ambiguous '->operator[]', where GCC correctly took it to mean "dereference the pointer and call operator[] on the dereferenced object", while Clang apparently took it to mean "call operator[] on this pointer".

Jacob Crabill added 2 commits July 16, 2025 14:25
Some of these should have been errors with GCC as well, such as
attempting to 'extern C' code that is not valid C.

The other issue was related to an ambiguous '->operator[]', where GCC
correctly took it to mean "dereference the pointer and call operator[]
on the dereferenced object", while Clang apparently took it to mean
"call operator[] on this pointer".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant