re PR c++/61670 (ICE on invalid in tree_nop_conversion)
authorMarek Polacek <polacek@redhat.com>
Wed, 25 Mar 2015 20:06:24 +0000 (20:06 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 25 Mar 2015 20:06:24 +0000 (20:06 +0000)
commit2a924bb46cd43165272ce6f1720710c38beb2c24
tree66ac49b022061a1477eea8481de32ecf4d3735ba
parentb7f5cbad2eee68fb861f44f7cdbd93ae1c7c8121
re PR c++/61670 (ICE on invalid in tree_nop_conversion)

PR c++/61670
* class.c (remove_zero_width_bit_fields): Check for null DECL_SIZE.

* g++.dg/template/pr61670.C: New test.

From-SVN: r221671
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr61670.C [new file with mode: 0644]