www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Internal error: template 990

↑ ↓ ← 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
↑ ↓ "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
↑ ↓ 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
↑ ↓ → "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


 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