This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
(gcc 2.95 NT4 SP6) function declaration with enum argument
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: (gcc 2.95 NT4 SP6) function declaration with enum argument
- From: Thomas Maeder <maeder at glue dot ch>
- Date: Sat, 04 Mar 2000 12:04:34 +0100
When I try to compile the following code using gcc 2.95 on NT4 SP6:
#include <string>
enum TLanguage;
std::string GetLanguageString(TLanguage);
I get:
use of enum `TLanguage' without previous declaration
I think that my code is correct; an incomplete type is sufficient for the
arguments/return type of a function declaration.
Thomas