This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/1553: Internal Compiler Error #373



>Number:         1553
>Category:       c++
>Synopsis:       Internal Compiler Error #373
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 04 14:16:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Mark Jordan
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
Windows 2000. MinGW g++.
>Description:
D:\project\bugs\gcc_internal1>g++ -c main.cpp
main.cpp: In function `int main(int, char **)':
main.cpp:37: Internal compiler error 373.
main.cpp:37: Please submit a full bug report.
main.cpp:37: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
>How-To-Repeat:
namespace DOC
{

template <typename CharT>
class Doc
{
};

template <typename CharT,typename DocT>
Doc<CharT>* MakeDocument()
{
   return new DocT;
}

template <typename CharT>
class DocTemp
{
public:
   typedef Doc<CharT>* (*PFM)();
   void FactoryMethod( PFM p ) { m_p=p; }

 private:
   PFM m_p;
};

}

template <typename CharT>
class MyDoc : public DOC::Doc<CharT>
{
};


int main(int argc, char *argv[])
{
  DOC::DocTemp<char> t;
  t.FactoryMethod( DOC::MakeDocument<char,MyDoc<char> > );
  return 0;
}
>Fix:
Beats me :-)
>Release-Note:
>Audit-Trail:
>Unformatted:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]