
18 Apr
2007
18 Apr
'07
4:08 a.m.
On 04/17/2007 02:36 PM, Eric Niebler wrote: [snip]
I don't think this is a bug in proto. I get the same error with:
#include <utility>
struct inp { typedef std::pair<inp, inp> type; static const type c; };
int main() { void const *p = &(inp::c); return p != 0; }
(Tested with msvc-8.0.)
Maybe msvc-8.0 shouldn't get the same error. I tried that code with g++ and got no error. However, I did try the attached, which contains just the essense of the proto code, and reproduced the error with g++ but not with como. So, I'm thinking g++ has a bug.