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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |6.0
         Resolution|---                         |FIXED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #2)
> Confirmed.
> 
> Testcase from PR56428:

This is a different issue overall related to PMF rather than to addresses, I
filed PR 101681 for that.

(In reply to Ed Catmur from comment #1)
> template<int* p> class X {};
> int i;
> X<&i> x1;      // OK
> X<(&(i))> x2;  // OK since C++11
> template<bool b> class Y : X<b ? &i : nullptr> {};  // OK since C++11 if !b
> X<true ? &i : nullptr> x3; // OK since C++1z

GCC 6+ does the correct thing for the testcase in comment #1 so closing.

Reply via email to