hughperman / pure-lang

Automatically exported from code.google.com/p/pure-lang
0 stars 0 forks source link

Pure does not compile with Bison-2.4.1 #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install the latest stable version of Bison (2.4.1).
2. Checkout Pure sources from svn.
3. ./configure && make

What is the expected output? What do you see instead?

I expect the compilation to succeed. Instead I get this output:

g++ -g -O2  `llvm-config --cppflags` -I. -I.
-DPURELIB='"/usr/local/lib/pure-0.15"' -c -o pure.o pure.cc
In file included from interpreter.hh:56,
                 from pure.cc:15:
parser.yy:96: error: ISO C++ forbids declaration of ‘rhs_info’ with no type
parser.yy:96: error: expected ‘;’ before ‘*’ token
parser.yy:97: error: ISO C++ forbids declaration of ‘rule_info’ with no type
parser.yy:97: error: expected ‘;’ before ‘*’ token
parser.yy:98: error: ISO C++ forbids declaration of ‘pat_rule_info’ with no
type
parser.yy:98: error: expected ‘;’ before ‘*’ token
parser.yy:100: error: ISO C++ forbids declaration of ‘comp_clause_list’
with no type
parser.yy:100: error: expected ‘;’ before ‘*’ token
parser.yy:101: error: ISO C++ forbids declaration of ‘comp_clause’ with no 
type
parser.yy:101: error: expected ‘;’ before ‘*’ token
parser.yy:103: error: ISO C++ forbids declaration of ‘sym_info’ with no type
parser.yy:103: error: expected ‘;’ before ‘*’ token
pure.cc: In function ‘int main(int, char**)’:
pure.cc:432: error: expected type-specifier before ‘err’
pure.cc:432: error: expected `)' before ‘&’ token
pure.cc:432: error: expected `{' before ‘&’ token
pure.cc:432: error: ‘e’ was not declared in this scope
pure.cc:432: error: expected `;' before ‘)’ token
pure.cc:451: error: expected type-specifier before ‘err’
pure.cc:451: error: expected `)' before ‘&’ token
pure.cc:451: error: expected `{' before ‘&’ token
pure.cc:451: error: ‘e’ was not declared in this scope
pure.cc:451: error: expected `;' before ‘)’ token
pure.cc:471: error: expected type-specifier before ‘err’
pure.cc:471: error: expected `)' before ‘&’ token
pure.cc:471: error: expected `{' before ‘&’ token
pure.cc:471: error: ‘e’ was not declared in this scope
pure.cc:471: error: expected `;' before ‘)’ token
make: *** [pure.o] Error 1

What version of the product are you using? On what operating system?

- SVN revision r577 of Pure.
- Linux-2.6.28 on 32-bit system.
- GCC-4.3.2
- Bison-2.4.1

Please provide any additional information below.

Original issue reported on code.google.com by mikko.sy...@gmail.com on 5 Jan 2009 at 3:29

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in r582.

Original comment by aggraef@gmail.com on 6 Jan 2009 at 10:29