stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-363) [XLC++ 8.0] explicit instantiation requires well-formed default function arguments
Date Fri, 16 Mar 2007 23:06:09 GMT
[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.


Mime
View raw message