google / j2objc

A Java to iOS Objective-C translation tool and runtime.
http://j2objc.org
Apache License 2.0
6k stars 970 forks source link

j2objc is generating Objective-C++ code without modifying C++20 keywords #2393

Open deansturtevant opened 1 month ago

deansturtevant commented 1 month ago

C++20 has introduced new keywords, including "requires". I have seen j2objc generate code with the "requires" symbol in a situation that fails C++20 compilation. The error message (from Clang) is "error: expected identifier; 'requires' is a keyword in Objective-C++"

tomball commented 1 month ago

When updating j2objc’s reserved words file, please add all the new C++20 reserved words, not just “requires”.

El El mar, sept 24, 2024 a la(s) 9:47 a.m., deansturtevant < @.***> escribió:

C++20 has introduced new keywords, including "requires". I have seen j2objc generate code with the "requires" symbol in a situation that fails C++20 compilation. The error message (from Clang) is "error: expected identifier; 'requires' is a keyword in Objective-C++"

— Reply to this email directly, view it on GitHub https://github.com/google/j2objc/issues/2393, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAW2JL2326Y335SRBKUZ2MDZYGCPLAVCNFSM6AAAAABOYTTYFSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DKNZWG44DANA . You are receiving this because you are subscribed to this thread.Message ID: @.***>