This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11912] [3.4 regression] scope in declarations
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2003 14:12:28 -0000
- Subject: [Bug c++/11912] [3.4 regression] scope in declarations
- References: <20030814013659.11912.mueller@kde.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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)