Closed afd closed 1 month ago
@afd I encountered the same error on my Mac.
sample.cc:59:11: error: expected ';' at end of declaration
int a[4]{__dredd_replace_expr_int_constant(10, 5), __dredd_replace_expr_int_constant(11, 10), __dredd_replace_expr_int_constant(12, 15), __dredd_replace_expr_int_constant(13, 20)};
^
;
1 error generated.
I am wondering if this is related to the c++
language standard. I can compile without problem with -std=c++17
option
Ah, that will be it! The single file tests make use of a compiler options environment variable where this is set. We'll need to do the same for the execute tests. Good spot.
Sent from Outlook for iOShttps://aka.ms/o0ukef
From: JFJJ @.> Sent: Friday, July 12, 2024 3:29:03 PM To: mc-imperial/dredd @.> Cc: Donaldson, Alastair F @.>; Mention @.> Subject: Re: [mc-imperial/dredd] Compilation failure on MacOS (Issue #275)
I am wondering if this is related to the c++ language standard. I can compile without problem with -std=c++17 option
— Reply to this email directly, view it on GitHubhttps://github.com/mc-imperial/dredd/issues/275#issuecomment-2225706205, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABEFEXPA7JV5T2FNPRFZGTTZL7R27AVCNFSM6AAAAABKYTGKA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRVG4YDMMRQGU. You are receiving this because you were mentioned.Message ID: @.***>
Fixed by #273 and #277.
The following code does not compile on MacOS according to the CI bots for #273. It compiles fine on Windows and Linux.
@ambergorzynski, @JonathanFoo0523, @JamesLee-Jones do any of you have Macs, and if so would you be able to try to compile this using Apple's clang++?
The MacOS error is:
Here is the code: