hughperman / pure-lang

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

error: forming reference to reference type 'bool&' #63

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. compile pure 0.49 on Mac OS X 10.6.8 Snow Leopard with Xcode 3.2.6

What is the expected output? What do you see instead?
Expected successful compile but got:

In file included from pure.cc:28:
/usr/include/c++/4.2.1/bits/stl_map.h: In instantiation of 
‘std::map<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, bool&, std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, bool&> > >’:
interpreter.hh:543:   instantiated from here
/usr/include/c++/4.2.1/bits/stl_map.h:342: error: forming reference to 
reference type ‘bool&’
/usr/include/c++/4.2.1/bits/stl_map.h:364: error: forming reference to 
reference type ‘bool&’
/usr/include/c++/4.2.1/bits/stl_map.h:373: error: forming reference to 
reference type ‘bool&’
make: *** [pure.o] Error 1

What version of the product are you using? On what operating system?
pure 0.49 on Mac OS X 10.6.8 Snow Leopard with Xcode 3.2.6, and therefore the 
Apple gcc 4.2.1 compiler.

Please provide any additional information below.
pure 0.48 worked fine.

Original issue reported on code.google.com by ryandesi...@gmail.com on 19 Nov 2011 at 1:40

GoogleCodeExporter commented 8 years ago
Oh well, it's an ancient gcc version which probably comes with an ancient C++ 
library. :( However, it shouldn't be hard to work around this, stay tuned.

Original comment by aggraef@gmail.com on 19 Nov 2011 at 2:43

GoogleCodeExporter commented 8 years ago
Should be fixed in rev. dd86281859b1.

Original comment by aggraef@gmail.com on 19 Nov 2011 at 8:38