// g++ -pedantic t.cpp

struct Foo {
  char *x;
  Foo(char *x) : x(x) {}
};

int main(int argc, char *argv[]) {
  Foo bar(Foo(argv[0]).x);
}
