diff --git a/src/lpython/parser/parser_stype.h b/src/lpython/parser/parser_stype.h index 07458a3f81..e24f07344f 100644 --- a/src/lpython/parser/parser_stype.h +++ b/src/lpython/parser/parser_stype.h @@ -112,7 +112,10 @@ static_assert(std::is_trivial::value); // Ensure the YYSTYPE size is equal to Vec, which is a required member, so // YYSTYPE must be at least as big, but it should not be bigger, otherwise it // would reduce performance. +// A temporary fix for PowerPC 32-bit, where the following assert fails with (16 == 12). +#ifndef __ppc__ static_assert(sizeof(YYSTYPE) == sizeof(Vec)); +#endif static_assert(std::is_standard_layout::value); static_assert(std::is_trivial::value);