delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2008/09/11/16:39:41

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
Message-ID: <48C97F4C.9040006@iki.fi>
Date: Thu, 11 Sep 2008 23:27:56 +0300
From: Andris Pavenis <andris DOT pavenis AT iki DOT fi>
User-Agent: Thunderbird 2.0.0.16 (X11/20080723)
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: mkdoc.cc does not compile (current CVS)
X-MIME-Autoconverted: from Quoted-Printable to 8bit by delorie.com id m8BKdE1Q010069
Reply-To: djgpp-workers AT delorie DOT com

As written in subject, mkdoc.cc oes not compile with gcc-4.3.0 from Fedora 9.

gcc -g -O2 -m32 mkdoc.cc -lstdc++ -o ../../hostbin/mkdoc.exe
mkdoc.cc:615: error: too few template-parameter-lists
mkdoc.cc:640: error: too few template-parameter-lists
mkdoc.cc:645: error: too few template-parameter-lists
mkdoc.cc: In destructor ‘TreeNode<N>::~TreeNode() [with N = void]’:
mkdoc.cc:123:   instantiated from ‘Tree<N>::~Tree() [with N = void]’
mkdoc.cc:612:   instantiated from ‘TreeNode<N>::~TreeNode() [with N = Tree<void>]’
mkdoc.cc:123:   instantiated from ‘Tree<N>::~Tree() [with N = Tree<void>]’
mkdoc.cc:174:   instantiated from here
mkdoc.cc:612: warning: deleting ‘void*’ is undefined
make: *** [../../hostbin/mkdoc.exe] Error 1

$ gcc --version
gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

It does not compile also with freshly built i586-pc-msdosdjgpp-g++ (version 4.3.2)

Andris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019