* [C++ testcase, committed] PR 56530
@ 2013-03-05 11:18 Paolo Carlini
0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2013-03-05 11:18 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 103 bytes --]
Hi,
I added the testcase and closed the PR as fixed in 4.7.3 and mainline.
Paolo.
/////////////////
[-- Attachment #2: CL_56530 --]
[-- Type: text/plain, Size: 111 bytes --]
2013-03-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/56530
* g++.dg/warn/Wsign-conversion-2.C: New.
[-- Attachment #3: patch_56530 --]
[-- Type: text/plain, Size: 417 bytes --]
Index: g++.dg/warn/Wsign-conversion-2.C
===================================================================
--- g++.dg/warn/Wsign-conversion-2.C (revision 0)
+++ g++.dg/warn/Wsign-conversion-2.C (working copy)
@@ -0,0 +1,11 @@
+// PR c++/56530
+// { dg-options "-Wsign-conversion" }
+
+struct string
+{
+ string () {};
+ ~string () {};
+};
+
+string foo[1]; // okay
+string bar[1][1]; // gives bogus warning
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-03-05 11:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-05 11:18 [C++ testcase, committed] PR 56530 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).