https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98061

Jason Cobb <jason.e.cobb at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jason Cobb <jason.e.cobb at gmail dot com> ---
I was wrong. GCC is correct.

>From https://bugs.llvm.org/show_bug.cgi?id=48331#c1
> This is an ICC bug. See [expr.type]p2:
>
> "If a prvalue initially has the type “cv T”, where T is a cv-unqualified 
> non-class, non-array type, the type of the expression is adjusted to T prior 
> to any further analysis."

Reply via email to