blob: 0ca922b9c38fd6e24ee6e56df4c39b46748cd9e8 [file] [log] [blame]
// { dg-options "" }
// { dg-do compile }
// C++/30221
// We would ICE while trying to reshape the pointer to
// member function element which is not needed.
class abstract {};
typedef void (abstract::*fptr1) (short & s ) const;
struct s {};
s array[] =
{
(fptr1)0
};// { dg-error "" }