public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "superaxioma at hotmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53220] [4.7/4.8 Regression] g++ mis-compiles compound literals Date: Wed, 01 May 2013 09:54:00 -0000 [thread overview] Message-ID: <bug-53220-4-aLpy3i7Z3B@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-53220-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53220 superaxioma at hotmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |superaxioma at hotmail dot | |com --- Comment #20 from superaxioma at hotmail dot com 2013-05-01 09:54:43 UTC --- (In reply to comment #18) > #include <stdio.h> > > void fn(int arr[]) > { > for (int j = 0; j < 5; ++j) > printf("%d: %d\n", j, arr[j]); > } > > int main() > { > fn((int[]) { 41, 42, 43, 44, 45 } ); > return 0; > } > > g++ -c t.cc > t.cc: In function ‘int main()’: > t.cc:11:37: error: taking address of temporary array > fn((int[]) { 41, 42, 43, 44, 45 } ); I wrote some code which compiled perfectly using gcc 4.7. However, now I am using gcc 4.8 and I am encountering exactly the problem mentioned by Paul. Will this be solved or should I look for another solution to overcome this problem? Any suggestions? >From gcc-bugs-return-421337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed May 01 09:55:26 2013 Return-Path: <gcc-bugs-return-421337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2082 invoked by alias); 1 May 2013 09:55:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 2058 invoked by uid 48); 1 May 2013 09:55:23 -0000 From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57132] spurious warning: division by zero [-Wdiv-by-zero] in if (m) res %=m; Date: Wed, 01 May 2013 09:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Changed-Fields: Message-ID: <bug-57132-4-d81fY4Xjs8@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-57132-4@http.gcc.gnu.org/bugzilla/> References: <bug-57132-4@http.gcc.gnu.org/bugzilla/> X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-05/txt/msg00010.txt.bz2 Content-length: 183 http://gcc.gnu.org/bugzilla/show_bug.cgi?idW132 --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-05-01 09:55:23 UTC --- I meant PR11856, of course ;)
next prev parent reply other threads:[~2013-05-01 9:54 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-05-03 19:50 [Bug c++/53220] New: " ppluzhnikov at google dot com 2012-05-03 19:53 ` [Bug c++/53220] " ppluzhnikov at google dot com 2012-05-03 22:38 ` [Bug c++/53220] [4.7/4.8 Regression] " hjl.tools at gmail dot com 2012-05-04 9:03 ` rguenth at gcc dot gnu.org 2012-05-04 18:53 ` xinliangli at gmail dot com 2012-05-07 14:33 ` jason at gcc dot gnu.org 2012-05-07 16:25 ` xinliangli at gmail dot com 2012-05-07 16:55 ` ppluzhnikov at google dot com 2012-05-07 17:18 ` xinliangli at gmail dot com 2012-05-07 17:55 ` jason at gcc dot gnu.org 2012-05-08 0:34 ` xinliangli at gmail dot com 2012-05-08 2:22 ` jason at gcc dot gnu.org 2012-05-17 0:13 ` ppluzhnikov at google dot com 2012-05-22 17:42 ` jason at gcc dot gnu.org 2012-05-22 17:50 ` ppluzhnikov at google dot com 2012-05-22 18:05 ` ppluzhnikov at google dot com 2012-05-26 21:20 ` jason at gcc dot gnu.org 2012-05-30 14:52 ` jason at gcc dot gnu.org 2012-06-03 4:50 ` jason at gcc dot gnu.org 2012-06-20 1:59 ` ppluzhnikov at google dot com 2012-06-20 7:20 ` jason at gcc dot gnu.org 2013-05-01 9:54 ` superaxioma at hotmail dot com [this message] 2013-05-01 19:13 ` jason at gcc dot gnu.org 2023-11-28 21:29 ` cvs-commit at gcc dot gnu.org
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=bug-53220-4-aLpy3i7Z3B@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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: linkBe 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).