stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Lemings" <>
Subject Compile error in __rw_aligned_union
Date Mon, 16 Jun 2008 19:29:59 GMT
I'm getting the following compile error on Linux systems:
gcc -c -I/work/stdcxx/branches/4.3.x/include/ansi -D_RWSTDDEBUG
-pthread -I/work/stdcxx/branches/4.3.x/include
-I/work/stdcxx/branches/4.3.x/tests/include  -std=gnu++0x
-D_RWSTD_EXT_CXX_0X -W -Wall -Wcast-qual -Winline -Wshadow
-Wwrite-strings -Wno-long-long -Wcast-align
In file included from
/work/stdcxx/branches/4.3.x/include/rw/_meta_other.h:94: error: expected
nested-name-specifier before '__rw_aligned_union'
/work/stdcxx/branches/4.3.x/include/rw/_meta_other.h:94: error: expected
';' before '<' token
make: *** [] Error 1
Here's the offending code:
 92     union {
 93         unsigned char __pad [_Len];
 94         typename __rw_aligned_union<_Len, Types...>::_C_type
 95     } _C_type;

I'm guessing that is supposed to be a recursive instantiation of
__rw_aligned_union_impl?  __rw_aligned_union isn't even seen by the
compiler until after this specialization.

View raw message