Hi Brian,

This is fixed in master by
https://github.com/sandstorm-io/capnproto/commit/0f1fd1938b19dccdb5dbfe9cb5177c4342a2a5b5
, which probably cherry-picks cleanly into 0.5.3.

-Kenton

On Mon, Mar 6, 2017 at 12:15 PM, <[email protected]> wrote:

> A user is seeing this error compiling a generated c++ code from a schema
> in GCC 7 that works in other versions (see https://github.com/marbl/Mash/
> issues/47):
>
> g++-7 -c -O3 -std=c++11 -Isrc -I/usr/include -I /usr/local//include -include 
> src/mash/memcpyLink.h -Wl,--wrap=memcpy  -o src/mash/capnp/MinHash.capnp.o 
> src/mash/capnp/MinHash.capnp.c++
> In file included from /usr/include/capnp/generated-header-support.h:31:0,
>                  from src/mash/capnp/MinHash.capnp.h:7,
>                  from src/mash/capnp/MinHash.capnp.c++:4:
> /usr/include/capnp/layout.h:129:65: error: could not convert template 
> argument ‘b’ from ‘bool’ to ‘capnp::Kind’
>  template <typename T, bool b> struct ElementSizeForType<List<T, b>> {
>                                                                  ^
> /usr/include/capnp/layout.h:129:66: error: template argument 1 is invalid
>  template <typename T, bool b> struct ElementSizeForType<List<T, b>> {
>                                                                   ^~
> g++-7 -c -O3 -std=c++11 -Isrc -I/usr/include -I /usr/local//include -include 
> src/mash/memcpyLink.h -Wl,--wrap=memcpy  -o src/mash/Command.o 
> src/mash/Command.cpp
> g++-7 -c -O3 -std=c++11 -Isrc -I/usr/include -I /usr/local//include -include 
> src/mash/memcpyLink.h -Wl,--wrap=memcpy  -o src/mash/CommandBounds.o 
> src/mash/CommandBounds.cpp
> Makefile:50: recipe for target 'src/mash/capnp/MinHash.capnp.o' failed
>
>
> Could this be related to the "stricter rules when using templates" in GCC
> 7 (https://gcc.gnu.org/gcc-7/porting_to.html)?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Cap'n Proto" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at https://groups.google.com/group/capnproto.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/capnproto.

Reply via email to