[Bug c++/11912] [3.4 regression] scope in declarations
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Thu Aug 14 14:12:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11912
------- Additional Comments From bangerth at dealii dot org 2003-08-14 14:12 -------
I would think the code is wrong, but am not sure either. However, this is what icc gives:
tmp/g> icc -c -Xc -ansi x.cc
x.cc(5): error: expression must have (pointer-to-) function type
int selection( selection() );
^
x.cc(5): warning #592: variable "selection" is used before its value is set
int selection( selection() );
^
x.cc(7): warning #424: extra ";" ignored
};
^
compilation aborted for x.cc (code 2)
More information about the Gcc-bugs
mailing list