From: Paolo Carlini <paolo.carlini@oracle.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: [C++ testcase, committed] PR 56530
Date: Tue, 05 Mar 2013 11:18:00 -0000 [thread overview]
Message-ID: <5135D480.8060800@oracle.com> (raw)
[-- 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
reply other threads:[~2013-03-05 11:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5135D480.8060800@oracle.com \
--to=paolo.carlini@oracle.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).