Date: Mon, 22 Mar 2021 00:06:08 +0200
- icc and gcc accept the code
- MSVC, clang and Power64 reject the code
Tested with latest stable version of each of them (and trunk, it made no
difference)
On Sun, Mar 21, 2021 at 11:10 PM Thiago Macieira via Std-Discussion <
std-discussion_at_[hidden]> wrote:
> On Sunday, 21 March 2021 13:24:05 PDT Omer Rosler via Std-Discussion wrote:
> > gcc accepts this snippet, while clang and MSVC reject it.
> >
> > https://godbolt.org/z/cfzaK3
> >
> > My questions:
> >
> > 1. Which compiler is correct?
> >
> > 2. Morally, is this difference in behaviour between regular and alias
> > templates intended?
>
> There are two more major compilers in Godbolt. Please try all four and
> give us
> the majority opinion.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel DPG Cloud Engineering
>
>
>
> --
> Std-Discussion mailing list
> Std-Discussion_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion
>
- MSVC, clang and Power64 reject the code
Tested with latest stable version of each of them (and trunk, it made no
difference)
On Sun, Mar 21, 2021 at 11:10 PM Thiago Macieira via Std-Discussion <
std-discussion_at_[hidden]> wrote:
> On Sunday, 21 March 2021 13:24:05 PDT Omer Rosler via Std-Discussion wrote:
> > gcc accepts this snippet, while clang and MSVC reject it.
> >
> > https://godbolt.org/z/cfzaK3
> >
> > My questions:
> >
> > 1. Which compiler is correct?
> >
> > 2. Morally, is this difference in behaviour between regular and alias
> > templates intended?
>
> There are two more major compilers in Godbolt. Please try all four and
> give us
> the majority opinion.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel DPG Cloud Engineering
>
>
>
> --
> Std-Discussion mailing list
> Std-Discussion_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion
>
Received on 2021-03-21 17:06:22