This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23826] invalid use of constructor as a template
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Sep 2005 23:46:18 -0000
- Subject: [Bug c++/23826] invalid use of constructor as a template
- References: <20050911233526.23826.harold@alum.mit.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2005-09-11 23:46 -------
For the reporter: what the compiler is telling you is that your code is not
valid ISO C++. What it is not telling you is that G++ 3.3.4 did not really
actually know what is valid C++ and what is not.
In GCC 3.4 and later there is a new C++ parser that is ISO C++ conforming.
Sadly for you, this means that while older G++ versions accepted your invalid
C++, newer G++ releases do not, and you have to fix your code to make it work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23826