Bug #270
closed[genom3] boolean type in .gen not properly handled in codel file.
Description
This simple module is correct for genom3, but does not compile.
component foo {
function set_foo(in boolean bar)
{
codel set_foo_cdl(in bar);
};
};
genom3 skeleton foo.gen
make2: Entering directory '/home/felix/work/foo/build/codels'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../codels -I../autoconf -I/home/felix/openrobots/include -g -O2 -MT libfoo_codels_la-foo_codels.lo -MD -MP -MF .deps/libfoo_codels_la-foo_codels.Tpo -c -o libfoo_codels_la-foo_codels.lo `test -f 'foo_codels.c' || echo '../../codels/'`foo_codels.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../codels -I../autoconf -I/home/felix/openrobots/include -g -O2 -MT libfoo_codels_la-foo_codels.lo -MD -MP -MF .deps/libfoo_codels_la-foo_codels.Tpo -c ../../codels/foo_codels.c -fPIC -DPIC -o .libs/libfoo_codels_la-foo_codels.o
In file included from ../../codels/foo_codels.c:4:0:
/home/felix/work/foo/foo.gen:5:25: error: unknown type name ‘bool’; did you mean ‘_Bool’?
codel set_foo_cdl(in bar);
~~
_Bool
../../codels/foo_codels.c:14:13: error: unknown type name ‘bool’; did you mean ‘_Bool’?
set_foo_cdl(bool bar, const genom_context self)
~~
_Bool
Makefile:449: recipe for target 'libfoo_codels_la-foo_codels.lo’ failed
—
Felix
Files
Updated by Anthony Mallet over 4 years ago
- Status changed from New to Closed
Applied in changeset genom3-pocolibs:genom3-pocolibs|4e935f825b1e697270f00637bb99b27bc0649758.