This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15672] wierd error reported
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2004 20:45:37 -0000
- Subject: [Bug c++/15672] wierd error reported
- References: <20040527054618.15672.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From igodard at pacbell dot net 2004-05-27 20:45 -------
Well if the declaration of power16c declares a function then that explains the message. But why does the compiler think it is a function, when similar declarations for e.g. power16b are taken as a data definition? If it's ambiguous it should be an error not a warning? Or if the standard forces resolution to the function dec, how do I make it unambiguous? It sure looks like a data declaration (with constructor) whose constructor argument is itself a constructor, to me.
BTW, implicit "==0" is an invention of the devil :-(
Ivan
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15672