This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12464] Regression in 3.4: typedef in class not recognized
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Sep 2003 16:30:04 -0000
- Subject: [Bug c++/12464] Regression in 3.4: typedef in class not recognized
- References: <20030930162043.12464.James.W.Mckelvey@jpl.nasa.gov>
- 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=12464
------- Additional Comments From gdr at integrable-solutions dot net 2003-09-30 16:30 -------
Subject: Re: New: Regression in 3.4: typedef in class not recognized
"James dot W dot Mckelvey at jpl dot nasa dot gov" <gcc-bugzilla@gcc.gnu.org> writes:
[...]
| template <typename DataType>
|
| class TemplateVariable
| {
| public:
|
| typedef int SetType;
|
| inline SetType operator=(int other) const;
| };
|
|
| template <typename DataType>
| TemplateVariable<DataType>::SetType TemplateVariable<DataType>::
^
Your program is ill-formed. There is a missing "typename" to tell the
compiler that TemplateVariable<DataType>::SetType is a typename. See
our FAQ.
-- Gaby