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-99) [HP aCC 3.63] error 475 on an explicit instantiation before definition
Date Fri, 06 Jan 2006 23:50:16 GMT
[HP aCC 3.63] error 475 on an explicit instantiation before definition
----------------------------------------------------------------------

         Key: STDCXX-99
         URL: http://issues.apache.org/jira/browse/STDCXX-99
     Project: STDCXX
        Type: Bug
  Components: External  
 Environment: HP aCC 3.63
    Reporter: Martin Sebor


Opened by sebor@roguewave.com (Martin Sebor) on 2005-04-22 09:36

-------- Original Message --------
Subject: aCC 3.63 bogus error 475 on an explicit instantiation before definition
Date: Fri, 22 Apr 2005 10:35:35 -0600
From: Martin Sebor <sebor@roguewave.com>
To: acxx-beta@cup.hp.com

Hi,

This bug appeared after we rearranged some of our template
instantiation code to work around a bug in another compiler.
aCC 6.0 works fine.

Martin

$ cat t.cpp && aCC -c -V t.cpp
template <class T> struct A;

template <class T> void foo ();

template <class T> void foo () { typename A<T>::B b; }

template void foo<int>();

template <class T> struct A { struct B { }; };

aCC: HP ANSI C++ B3910B A.03.63
Error 475: Exact position unknown; near ["t.cpp", line 7]. # Cannot 
generate a specialization of incomplete template struct A<int>.
Error 618: "t.cpp", line 7 # The definition of template foo contains 
typename qualification 'A<T>::B', yet generation of specialization "void 
foo<int>()" implies that 'A<T>' is 'tentative struct A<int>', which is 
incomplete.
    template void foo<int>();
    ^^^^^^^^^^^^^^^^^^^^^^^^^


------- Additional Comment #1 From Martin Sebor on 2005-04-22 15:12 -------

Came up as a result of the following change made to address bug #448:
http://perforce.cvo.roguewave.com/@md=d&cd=//&c=bb7@//174217?ac=10


------- Additional Comment #2 From Martin Sebor on 2005-04-25 10:20 -------

-------- Original Message --------
Subject: RE: aCC 3.63 bogus error 475 on an explicit instantiation
before definition
Date: Mon, 25 Apr 2005 11:01:19 +0530
From: S G Ganesh <sgganesh@india.hp.com>
Reply-To: <sgganesh@india.hp.com>
To: 'Martin Sebor' <sebor@roguewave.com>, <acxx-beta@cup.hp.com>

Martin, 

   I've raised CR JAGaf61023 for this. 

-Ganesh 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message