Path: csiph.com!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.c++ Subject: Re: What does this code print ? Date: Fri, 13 Oct 2023 17:53:52 +0100 Organization: A noiseless patient Spider Lines: 26 Message-ID: <87o7h231lr.fsf@bsb.me.uk> References: <87lec95n0t.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="0be012e1613f7b29f75119ae7d325a09"; logging-data="3462317"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/X86Jee77zAcbqcNdQWOrjJdwmFyEBLL4=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:Rw4iRp707i0K85N+SrNQY+3kSPo= sha1:GaRVz4OhrDrJ3yMu/E3ntRWtLVY= X-BSB-Auth: 1.02183faca1a49fbc21f0.20231013175352BST.87o7h231lr.fsf@bsb.me.uk Xref: csiph.com comp.lang.c++:92781 Bonita Montero writes: > Am 11.10.2023 um 19:41 schrieb Scott Lurndal: > >> Bonita Montero writes: > >>> Use a compiler which knows __fastcall and __stdcall. > >> Why? >> gcc and clang are far superior. > > In this case it's about functionality, not performance. > And clang-cl supports __fastcall and __stdcall also. Here, clang reports: xx.cc:12:7: warning: '__fastcall' calling convention is not supported for this target [-Wignored-attributes] int (__fastcall *volatile pFnFastcall)( int ) = lambda; ^ xx.cc:13:7: warning: '__stdcall' calling convention is not supported for this target [-Wignored-attributes] int (__stdcall *volatile pFnStdcall)( int ) = lambda; so "supported" in the sense that it's not a syntax error. -- Ben.