C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] Conditional final class-virt-specifier
From: Arthur O'Dwyer (arthur.j.odwyer_at_[hidden])
Date: 2020-07-15 19:33:59


Interesting. Even in /permissive- mode, though, it seems to be skipping the
parser for requires-clauses, template default arguments, and probably some
other stuff in the template-head.
https://godbolt.org/z/751cc9

On Wed, Jul 15, 2020 at 5:20 PM Hyman Rosen <hyrosen_at_[hidden]> wrote:

> On Wed, Jul 15, 2020 at 4:35 PM Arthur O'Dwyer via Std-Proposals <
> std-proposals_at_[hidden]> wrote:
>
>> Just to drive this point home (and because I know someone else will say
>> it if I don't):
>> https://godbolt.org/z/hK99Gv
>> The body of this function template is "syntax error syntax error" (with
>> no semicolon at the end). MSVC accepts it happily, because *MSVC doesn't
>> parse templates*.
>>
>
> It does if you invoke it correctly: <https://godbolt.org/z/Gz9eYv>
>



STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups