llvm

Felix Salfelder <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel
Message-ID <[email protected]>
compilation with llvm fails (on master).

what i did:
$ ./configure
$ make CCC=clang++
[..]
clang++ -DUNIX -O2 -DNDEBUG -I. -I../include -I../../include -W -c ../mg_main.cc
In file included from ../mg_main.cc:24:
In file included from ../mg_out.h:23:
../mg_.h:134:19: error: variable has incomplete type 'C_Comment'
      C_Comment   c_comment;
[..]

theres a simple fix in the "llvm" branch (attached) that reorders a few definitions.

thanks
felix

_______________________________________________
Gnucap-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnucap-devel
llvm (text/plain, 1.4 KB)
commit a57a596d1ae14e4813a8ebb4e948586071992479
Author: Felix Salfelder <[email protected]>
Date:   Tue May 20 21:36:34 2014 +0200

    modelgen llvm compile fix

diff --git a/modelgen/mg_.h b/modelgen/mg_.h
index 4cebc9d..2108b62 100644
--- a/modelgen/mg_.h
+++ b/modelgen/mg_.h
@@ -108,6 +108,20 @@ public:
   size_t	 size()const	 {return _list.size();}
 };
 /*--------------------------------------------------------------------------*/
+class C_Comment
+  :public Base
+{
+public:
+  void parse(CS& f);
+};
+/*--------------------------------------------------------------------------*/
+class Cxx_Comment
+  :public Base
+{
+public:
+  void parse(CS& f);
+};
+/*--------------------------------------------------------------------------*/
 /* A "Collection" differs from a "List" in how it is parsed.
  * Each parse of a "Collection" created one more object and stores
  * it in the Collection.  The size of the Collection therefore grows by 1.
@@ -200,20 +214,6 @@ public:
   }
 };
 /*--------------------------------------------------------------------------*/
-class C_Comment
-  :public Base
-{
-public:
-  void parse(CS& f);
-};
-/*--------------------------------------------------------------------------*/
-class Cxx_Comment
-  :public Base
-{
-public:
-  void parse(CS& f);
-};
-/*--------------------------------------------------------------------------*/
 class Key
   :public Base
 {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.