This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/15872] h8300-hms-g++ generates wrong machine code when initializing static members of class templates
- From: "georg dot blaschke at stud dot informatik dot uni-erlangen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2004 11:53:10 -0000
- Subject: [Bug target/15872] h8300-hms-g++ generates wrong machine code when initializing static members of class templates
- References: <20040608105534.15872.georg.blaschke@stud.informatik.uni-erlangen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From georg dot blaschke at stud dot informatik dot uni-erlangen dot de 2004-06-09 11:53 -------
(In reply to comment #3)
> [...]
> if you explicantly instantiation the template static variable it is fine.
I still do not understand what you meant with 'explicantly _instantiation_',but
assume your idea was to write an explicit _assignment_ statement for the
variable into the code, right?
Well, that will not work. I do not know before compile time which instantiations
of the class template do exist. The class template _might_ be instantiated for
many different types.
As there's no real workaround I set the severity back to 'normal'.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |normal
Summary|h8300-hms does not support |h8300-hms-g++ generates
|implicit instantiations of |wrong machine code when
|template static variables |initializing static members
| |of class templates
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15872