[ https://issues.apache.org/jira/browse/STDCXX-363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482505 ]
Martin Sebor commented on STDCXX-363: ------------------------------------- -------- Original Message -------- Subject: IBM - PMR 02338,K78,000 - Compiling issue with template Date: Tue, 20 Mar 2007 15:02:00 -0400 From: Nim Li <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Hello, During my testing, I notice the subject issue has been fixed in the February 2007 XL C/C++ V8 PTF (8.0.0.13), which can be downloaded in: http://www-1.ibm.com/support/docview.wss?uid=swg24015075 Please let me know if you have any further questions. If I do not hear from you, I will follow up by March 30. Thank you, Nim Li XL C/C++ and Fortran Support IBM Toronto Software Lab Phone: +1 905-413-5204 C/C++ Compiler Support Page: http://www.ibm.com/software/awdtools/ccompilers/support/ XL Fortran Support Page: http://www.ibm.com/software/awdtools/fortran/xlfortran/support/ zOS C/++ Support Page: http://www.ibm.com/software/awdtools/czos/support/ > [XLC++ 8.0] explicit instantiation requires well-formed default function > arguments > ---------------------------------------------------------------------------------- > > Key: STDCXX-363 > URL: https://issues.apache.org/jira/browse/STDCXX-363 > Project: C++ Standard Library > Issue Type: Bug > Components: External > Environment: XLC++ 8.0 > Reporter: Martin Sebor > > I believe the program below is well-formed (according to 14.7.2, p9, an > explicit instantiation does not constitute a use of a default argument). It > fails to compile with XLC++ 8.0. > $ cat t.cpp && xlC -qversion && xlC -c t.cpp > template <class T> struct A { void foo (T = T::foobar ()) > { } }; > struct B { }; > template class A<B>; > IBM XL C/C++ Enterprise Edition V8.0 for AIX > Version: 08.00.0000.0012 > "t.cpp", line 1.45: 1540-0063 (S) The text "T::foobar" is unexpected. > "t.cpp", line 3.16: 1540-0700 (I) The previous message was produced while > processing "struct A<B>". -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.