(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
parse/
pr29234.C
// PR c++/29234

struct S { void operator()(); };

void foo ()
{
  ( S()() );
}

struct C { void operator[](C); };

void bar ()
{
  C x;
  ( C()[x] );
}