www.digitalmars.com         C & C++   DMDScript  

c++ - Internal error: template 990

reply Christof Meerwald <cmeerw web.de> writes:
Here is a small test-case:

template<void f(int x)>
struct A
{ };

void func(int x);
typedef A<func> B;


BTW, I can compile it if I omit the "x" from the first line:
"template<void f(int)>"


bye, Christof

-- 
http://cmeerw.cjb.net                          Jabber: cmeerw jabber.at
mailto cmeerw at web.de                   ICQ: 93773535, Yahoo!: cmeerw

...and what have you contributed to the Net?
Oct 23 2001
parent reply "Walter" <walter digitalmars.com> writes:
These are all great bug reports. Have you a test suite, or just a large body
of template code?

Christof Meerwald wrote in message <9r4u9j$14u7$2 digitaldaemon.com>...
Here is a small test-case:

template<void f(int x)>
struct A
{ };

void func(int x);
typedef A<func> B;


BTW, I can compile it if I omit the "x" from the first line:
"template<void f(int)>"


bye, Christof

--
http://cmeerw.cjb.net                          Jabber: cmeerw jabber.at
mailto cmeerw at web.de                   ICQ: 93773535, Yahoo!: cmeerw

...and what have you contributed to the Net?
Oct 23 2001
parent reply Christof Meerwald <cmeerw web.de> writes:
On Tue, 23 Oct 2001 21:03:17 -0700, Walter wrote:
 These are all great bug reports. Have you a test suite, or just a large body
 of template code?
No, I am currently just trying to compile the libraries I am using in my projects: STLport (that's where I have extracted most of the template related test-cases), omniORB, boost. I hope someday I will be able to compile and use all these libraries with DM.
 Christof Meerwald wrote in message <9r4u9j$14u7$2 digitaldaemon.com>...
template<void f(int x)>
struct A
This was one of the rare cases where I used templates in my own code. bye, Christof -- http://cmeerw.cjb.net Jabber: cmeerw jabber.at mailto cmeerw at web.de ICQ: 93773535, Yahoo!: cmeerw ...and what have you contributed to the Net?
Oct 24 2001
parent "Walter" <walter digitalmars.com> writes:
I'll try to get them all fixed!

Christof Meerwald wrote in message <9r687q$2577$1 digitaldaemon.com>...
On Tue, 23 Oct 2001 21:03:17 -0700, Walter wrote:
 These are all great bug reports. Have you a test suite, or just a large
body
 of template code?
No, I am currently just trying to compile the libraries I am using in my projects: STLport (that's where I have extracted most of the template related test-cases), omniORB, boost. I hope someday I will be able to compile and use all these libraries with DM.
 Christof Meerwald wrote in message <9r4u9j$14u7$2 digitaldaemon.com>...
template<void f(int x)>
struct A
This was one of the rare cases where I used templates in my own code. bye, Christof -- http://cmeerw.cjb.net Jabber: cmeerw jabber.at mailto cmeerw at web.de ICQ: 93773535, Yahoo!: cmeerw ...and what have you contributed to the Net?
Oct 24 2001