view gcc/testsuite/g++.dg/conversion/op7.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

// PR c++/94190 - wrong no post-decrement operator error in template.

struct S { operator long & (); } b;

template<int> void
foo ()
{
  b--;
  ++b;
  --b;
  b++;
  !b;
  ~b;
  +b;
  -b;
}

void
bar ()
{
  foo<0> ();
}