summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/ambig5.C
blob: e554d961f570a4e7012a955085706bc989325013 (plain)
1
2
3
4
5
6
7
// PR c++/41786

struct A { A(int, char const*); };
int main() {
  int i = 0, *b = &i;
  A a(int(b[i]), "hello");
}