public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [C++ testcase, committed] PR 50280
@ 2011-09-25 12:35 Paolo Carlini
  0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2011-09-25 12:35 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 120 bytes --]

Hi,

I'm committing as obvious the testcase and closing the PR as fixed for 4.7.

Thanks,
Paolo.

/////////////////////

[-- Attachment #2: CL_50280 --]
[-- Type: text/plain, Size: 107 bytes --]

2011-09-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50280
	* g++.dg/template/bitfield1.C: New.


[-- Attachment #3: patch_50280 --]
[-- Type: text/plain, Size: 367 bytes --]

Index: g++.dg/template/bitfield1.C
===================================================================
--- g++.dg/template/bitfield1.C	(revision 0)
+++ g++.dg/template/bitfield1.C	(revision 0)
@@ -0,0 +1,11 @@
+// PR c++/50280
+
+struct S { int bf : 3; };
+
+template<class _T1>
+void make_pair(_T1& __x) {}
+
+void foo() {
+  const S s = S();
+  make_pair(s.bf);
+}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-25 10:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-25 12:35 [C++ testcase, committed] PR 50280 Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).