[Bug c/90658] [7/8/9 Regression] ICE in default_conversion, at c/c-typeck.c:2159
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 28 19:48:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90658
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2019-05-28
CC| |mpolacek at gcc dot gnu.org,
| |msebor at gcc dot gnu.org
Known to work| |4.9.4
Summary|ICE in default_conversion, |[7/8/9 Regression] ICE in
|at c/c-typeck.c:2159 |default_conversion, at
| |c/c-typeck.c:2159
Ever confirmed|0 |1
Known to fail| |10.0, 5.1.0, 6.4.0, 7.3.0,
| |8.2.0, 9.1.0
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. Bisection points to r210262:
PR c/50459
c-family/
* c-common.c (check_user_alignment): Return -1 if alignment is error
node.
(handle_aligned_attribute): Don't call default_conversion on
FUNCTION_DECLs.
(handle_vector_size_attribute): Likewise.
(handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
(handle_sentinel_attribute): Call default_conversion and allow even
integral types as an argument.
c/
* c-parser.c (c_parser_attributes): Parse the arguments as an
expression-list if the attribute takes identifier.
testsuite/
* c-c++-common/attributes-1.c: Move test line to a new test.
* c-c++-common/attributes-2.c: New test.
* c-c++-common/pr50459.c: New test.
* c-c++-common/pr59280.c: Add "undeclared" to dg-error.
* gcc.dg/nonnull-2.c: Likewise.
* gcc.dg/pr55570.c: Modify dg-error.
* gcc.dg/tm/wrap-2.c: Likewise.
Prior to that GCC rejected the test case with:
error: constructor priorities must be integers from 0 to 65535 inclusive
void g () __attribute__ ((constructor(f)));
^
More information about the Gcc-bugs
mailing list