Subject: | Can't define struct with member named "src" |
Date: | Thu, 25 Sep 2014 23:03:45 +0200 |
To: | bug-Inline-Struct [...] rt.cpan.org |
From: | Heinz Knutzen <heinz.knutzen [...] gmail.com> |
If a struct is defined with some member named "src", the generated .xs
file fails to compile.
The error messages give no hint, what the real problem is.
At least, it should abort with a clear error message.
But better, it should be changed to allow all valid names as struct member.
Example program:
============================================
use Inline C => <<'END', STRUCTS => 1;
struct Foo {
int src;
int dst;
};
END
============================================
Used versions:
- Inline-Struct-0.11
- Perl v5.18.2