I wrote the following code snippet:
void foo() { struct _bar_ { int a; } bar; cout << \"Value of a is \" << bar.a; } <
Do not rely on this functionality it is non-standard
just add
foo() : a() {}
I can't remember the exact state of gcc 4.2 (i think it is too old) but if you were using C++11 you can do the following
foo()=default;