[Bug libstdc++/21244] Confusion in template instantiation

2005-04-27 Thread dominik dot strasser at infineon dot com
--- Additional Comments From dominik dot strasser at infineon dot com 2005-04-27 09:28 --- (In reply to comment #8) > On second thought, maybe we can safely change the enum to not be anonymous... I think so, too as I can't see any user error in the second example. --

[Bug libstdc++/21244] Confusion in template instantiation

2005-04-27 Thread dominik dot strasser at infineon dot com
--- Additional Comments From dominik dot strasser at infineon dot com 2005-04-27 09:09 --- Created an attachment (id=8750) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8750&action=view) Use const static member instead of enum -- http://gcc.gnu.org/bugzilla/show_bug

[Bug libstdc++/21244] Confusion in template instantiation

2005-04-27 Thread dominik dot strasser at infineon dot com
--- Additional Comments From dominik dot strasser at infineon dot com 2005-04-27 09:07 --- (In reply to comment #4) > The second example seems to me also a duplicate of 19404. This is a reduced > testcase: > > class Foo { }; > template void operator/(const F

[Bug c++/21244] Confusion in template instantiation

2005-04-26 Thread dominik dot strasser at infineon dot com
--- Additional Comments From dominik dot strasser at infineon dot com 2005-04-27 06:55 --- Created an attachment (id=8748) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8748&action=view) Another source illustrating the problem. Error messages: /data/heizer1_0/strassed/

[Bug c++/21244] Confusion in template instantiation

2005-04-26 Thread dominik dot strasser at infineon dot com
--- Additional Comments From dominik dot strasser at infineon dot com 2005-04-27 06:54 --- Created an attachment (id=8747) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8747&action=view) Source file illustrating the faulty behavior Error messages: gcc4_template.C: In f

[Bug c++/21244] New: Confusion in template instantiation

2005-04-26 Thread dominik dot strasser at infineon dot com
Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dominik dot strasser at infineon dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC