This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13437] New: forward declaration in function scope hides inline
- From: "melkov at comptek dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Dec 2003 04:15:37 -0000
- Subject: [Bug c++/13437] New: forward declaration in function scope hides inline
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
/usr/local/egcs-3/bin/c++ test.cpp
/var/tmp//ccdg0amh.o: In function `main':
/var/tmp//ccdg0amh.o(.text+0x11): undefined reference to `f()'
* 'inline' removed -> OK
* f declaration removed -> OK
(2.95.4 compiles that fine)
==> test.cpp <==
inline void f() {}
int main() {
void f();
f();
return 0;
}
--
Summary: forward declaration in function scope hides inline
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: melkov at comptek dot ru
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-freebsd-gnu
GCC host triplet: i686-freebsd-gnu
GCC target triplet: i686-freebsd-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13437