[Bug c++/22596] Impossible to explicitly instantiate particular overloaded function

2005-07-21 Thread phenning at lanl dot gov
--- Additional Comments From phenning at lanl dot gov 2005-07-21 23:26 --- (In reply to comment #5) > Your explicit instantiation > template int foo< A_class >(A_class a); > obviously matches both the declarations of foo. I'm unsure which > one the compile

[Bug c++/22596] Impossible to explicitly instantiate particular overloaded function

2005-07-21 Thread phenning at lanl dot gov
--- Additional Comments From phenning at lanl dot gov 2005-07-21 19:16 --- (In reply to comment #2) > void g(void) > { > A_class a; > foo >(a); > } Right, and I think that it should in that case. It seems that g++ attempts to call the first definition when t

[Bug c++/22596] Impossible to explicitly instantiate particular overloaded function

2005-07-21 Thread phenning at lanl dot gov
--- Additional Comments From phenning at lanl dot gov 2005-07-21 18:48 --- Created an attachment (id=9324) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9324&action=view) sample code illustrating problem -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22596

[Bug c++/22596] New: Impossible to explicitly instantiate particular overloaded function

2005-07-21 Thread phenning at lanl dot gov
Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: phenning at lanl dot gov CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: i686-pc-linux-gnu, powerpc-apple-darwin8 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22596