* call.c (standard_conversion): Strip cv-qualifiers from bitfield
types.
PR c++/27979
* g++.dg/expr/bitfield2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114733
138bc75d-0d04-0410-961f-
82ee72b054a4
2006-06-16 Mark Mitchell <mark@codesourcery.com>
+ PR c++/27979
+ * call.c (standard_conversion): Strip cv-qualifiers from bitfield
+ types.
+
PR c++/27884
* decl.c (have_extern_spec): Remove.
(start_decl): Do not check have_extern_spec.
tree bitfield_type;
bitfield_type = is_bitfield_expr_with_lowered_type (expr);
if (bitfield_type)
- from = bitfield_type;
+ from = strip_top_quals (bitfield_type);
}
conv = build_conv (ck_rvalue, from, conv);
}
2006-06-16 Mark Mitchell <mark@codesourcery.com>
+ PR c++/27979
+ * g++.dg/expr/bitfield2.C: New test.
+
PR c++/27884
- * g++.dg/parse/linkage2.C: New test
+ * g++.dg/parse/linkage2.C: New test.
2006-06-16 Richard Guenther <rguenther@suse.de>
--- /dev/null
+// PR c++/27979
+
+class Ast
+{
+ enum AstKind { };
+ const AstKind kind : 8;
+ void foo(AstKind k) { }
+ void bar(void) { foo(kind); }
+};