/cp
commit82c53ea94cb0e9ac0094dd7933393e3f1b9560f2
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Feb 2017 08:54:55 +0000 (2 08:54 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Feb 2017 08:54:55 +0000 (2 08:54 +0000)
tree4345a0724bf51384c4f8523ef2aba2ce4496accb
parent29a5dfb150ce56207eb60a474fdf4da3385e7041
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245117 138bc75d-0d04-0410-961f-82ee72b054a4
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]