This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/1553: Internal Compiler Error #373
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/1553: Internal Compiler Error #373
- From: mark_jordan at ieee dot org
- Date: 4 Jan 2001 22:11:58 -0000
- Reply-To: mark_jordan at ieee dot org
>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: