2013-11-26 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58700
* decl.c (grokdeclarator): Don't try to pass declarator->id_loc
to build_lang_decl_loc when declarator is null.
/testsuite
2013-11-26 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58700
* g++.dg/parse/bitfield4.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205389
138bc75d-0d04-0410-961f-
82ee72b054a4
2013-11-26 Paolo Carlini <paolo.carlini@oracle.com>
+ PR c++/58700
+ * decl.c (grokdeclarator): Don't try to pass declarator->id_loc
+ to build_lang_decl_loc when declarator is null.
+
+2013-11-26 Paolo Carlini <paolo.carlini@oracle.com>
+
* cvt.c (cp_convert_and_check): Avoid calling cp_convert
unnecessarily.
{
/* C++ allows static class members. All other work
for this is done by grokfield. */
- decl = build_lang_decl_loc (declarator->id_loc,
+ decl = build_lang_decl_loc (declarator
+ ? declarator->id_loc
+ : input_location,
VAR_DECL, unqualified_id, type);
set_linkage_for_static_data_member (decl);
/* Even if there is an in-class initialization, DECL
+2013-11-26 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58700
+ * g++.dg/parse/bitfield4.C: New.
+
2013-11-26 Richard Biener <rguenther@suse.de>
PR tree-optimization/59287
--- /dev/null
+// PR c++/58700
+
+struct A
+{
+ static int : 4; // { dg-error "bit-field" }
+};