This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/15872] h8300-hms-g++ generates wrong machine code when initializing static members of class templates


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]