re PR c++/69637 (ICE on an invalid bit-field with template name for width)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 2 Feb 2017 08:54:55 +0000 (08:54 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 2 Feb 2017 08:54:55 +0000 (08:54 +0000)
commitd8d58893e4b12de87af384ec2bc45342e0238ce8
tree4345a0724bf51384c4f8523ef2aba2ce4496accb
parent521a70a405539df8f0a573091c9ceb46c31be5f5
re PR c++/69637 (ICE on an invalid bit-field with template name for width)

/cp
2017-02-02  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/69637
* decl2.c (grokbitfield): In case of error don't set-up DECL_INITIAL
to the width.

/testsuite
2017-02-02  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/69637
* g++.dg/cpp0x/pr69637-1.C: New.
* g++.dg/cpp0x/pr69637-2.C: Likewise.

From-SVN: r245117
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr69637-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr69637-2.C [new file with mode: 0644]