re PR c++/88636 (ICE: Segmentation fault (in c_tree_chain_next))
authorJakub Jelinek <jakub@redhat.com>
Thu, 3 Jan 2019 10:11:40 +0000 (11:11 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 3 Jan 2019 10:11:40 +0000 (11:11 +0100)
commitcc3dac976e2b61fcf3c0236255a6dcc99e3bafe8
tree72bc2d945e2ddfe017dd8269d6c23e17f6c6bcbc
parent7dae295006bed4093ecbc1fda38a457338ff859b
re PR c++/88636 (ICE: Segmentation fault (in c_tree_chain_next))

PR c++/88636
* decl.c (builtin_function_1): Return result of pushdecl_top_level
or pushdecl rather than decl.

* g++.target/i386/pr88636.C: New test.

From-SVN: r267548
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.target/i386/pr88636.C [new file with mode: 0644]