[Bug c/63272] GCC should warn when using pointer to dead scoped variable within the same function

2014-09-15 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63272 --- Comment #3 from Andrew Pinski --- But really this is already talked about the warning in bug 60517 and really in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60770#c1 .

[Bug c/63272] GCC should warn when using pointer to dead scoped variable within the same function

2014-09-15 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63272 --- Comment #2 from Andrew Pinski --- (In reply to Manuel López-Ibáñez from comment #1) > It would be nice to have. Perhaps related to PR49974. Definitely related to PR 53855.

[Bug c/63272] GCC should warn when using pointer to dead scoped variable within the same function

2014-09-15 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63272 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/63274] std::list uses T(...) instead of T{...} in implementation of emplace()

2014-09-15 Thread d.v.a at ngs dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63274 --- Comment #1 from __vic --- And yes, in this case I can just write l.push_back({1, 2}); But both cases should be acceptable for compiler, IMO.

[Bug libstdc++/63274] New: std::list uses T(...) instead of T{...} in implementation of emplace()

2014-09-15 Thread d.v.a at ngs dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63274 Bug ID: 63274 Summary: std::list uses T(...) instead of T{...} in implementation of emplace() Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/58038] std::this_thread::sleep_until can cause inifinite sleep

2014-09-15 Thread dan at stahlke dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58038 Dan Stahlke changed: What|Removed |Added CC||dan at stahlke dot org --- Comment #9 from

[Bug c++/58102] rejects valid initialization of constexpr object with mutable member

2014-09-15 Thread richard-gccbugzilla at metafoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58102 --- Comment #3 from Richard Smith --- Thanks, that is (was) a Clang bug; I've just fixed it. And there's a standard defect here too, as far as I can see: union U { int a; mutable int b; }; constexpr U u1 = {1}; int k = (u1.b = 2); conste

[Bug middle-end/63273] New: atomic operations lead to inefficient code

2014-09-15 Thread dvyukov at google dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63273 Bug ID: 63273 Summary: atomic operations lead to inefficient code Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-e

[Bug pch/63229] [5.0 Regression] FAIL: ./except-1.h -O0 (internal compiler error)

2014-09-15 Thread tbsaunde at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63229 tbsaunde at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug target/63234] arm used label is removed

2014-09-15 Thread pangbw at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63234 baoshan changed: What|Removed |Added Version|4.9.1 |4.9.0 --- Comment #2 from baoshan --- 1. conf

[Bug c/63272] New: GCC should warn when using pointer to dead scoped variable within the same function

2014-09-15 Thread jacob.benoit.1 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63272 Bug ID: 63272 Summary: GCC should warn when using pointer to dead scoped variable within the same function Product: gcc Version: unknown Status: UNCONFIRMED Sev

[Bug c++/63254] elfos.h missing space between literal and identifier.

2014-09-15 Thread scott.clark at itron dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63254 --- Comment #2 from Scott --- This problem is also apparent in defaults.h.

[Bug sanitizer/63245] renderMemorySnippet shouldn't show more bytes than the underlying type

2014-09-15 Thread samsonov at google dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63245 --- Comment #2 from Alexey Samsonov --- This is also reported as http://llvm.org/bugs/show_bug.cgi?id=20721 I've mailed a patch that should at least fix the crashes: http://reviews.llvm.org/D5253. I agree that UBSan can do better, and actually ad

[Bug sanitizer/63245] renderMemorySnippet shouldn't show more bytes than the underlying type

2014-09-15 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63245 --- Comment #1 from Jakub Jelinek --- I think it shows some bytes also before and after the region. Perhaps it can do that with the exception when there is a page boundary in the region before the access or after it, or perhaps it can do so witho

[Bug tree-optimization/63271] Should commute arithmetic with vector load

2014-09-15 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63271 --- Comment #1 from Marc Glisse --- The closest we currently handle (with -O3) is: typedef int vec __attribute__((vector_size(4*sizeof(int; void f(vec*r, int i){ (*r)[0]=3*i; (*r)[1]=4*i; (*r)[2]=7*i; (*r)[3]=9*i; } (none of the co

[Bug fortran/56408] Fix dependency handling of testsuite/gfortran.dg

2014-09-15 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56408 --- Comment #8 from Jakub Jelinek --- Author: jakub Date: Mon Sep 15 19:46:12 2014 New Revision: 215275 URL: https://gcc.gnu.org/viewcvs?rev=215275&root=gcc&view=rev Log: PR fortran/56408 * gfortran.dg/dg.exp (gfortran_test_path, gfortra

[Bug target/60704] [4.9 Regression] ICE: in extract_constrain_insn_cached, at recog.c:2156 with -flive-range-shrinkage -march=amdfam10

2014-09-15 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60704 Uroš Bizjak changed: What|Removed |Added Severity|normal |critical --- Comment #7 from Uroš Bizjak

[Bug tree-optimization/63271] New: Should commute arithmetic with vector load

2014-09-15 Thread zackw at panix dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63271 Bug ID: 63271 Summary: Should commute arithmetic with vector load Product: gcc Version: 4.9.1 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal

[Bug target/61360] [5 Regression] ICE: in lra_update_insn_recog_data, at lra.c:1363 with -mtune=bdver4

2014-09-15 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61360 Bug 61360 depends on bug 60704, which changed state. Bug 60704 Summary: [4.9 Regression] ICE: in extract_constrain_insn_cached, at recog.c:2156 with -flive-range-shrinkage -march=amdfam10 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60704

[Bug target/60704] [4.9 Regression] ICE: in extract_constrain_insn_cached, at recog.c:2156 with -flive-range-shrinkage -march=amdfam10

2014-09-15 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60704 Uroš Bizjak changed: What|Removed |Added Status|RESOLVED|REOPENED Blocks|

[Bug target/61360] [5 Regression] ICE: in lra_update_insn_recog_data, at lra.c:1363 with -mtune=bdver4

2014-09-15 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61360 Uroš Bizjak changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|ubizjak at gmail do

[Bug target/61360] [5 Regression] ICE: in lra_update_insn_recog_data, at lra.c:1363 with -mtune=bdver4

2014-09-15 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61360 Uroš Bizjak changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug c++/58102] rejects valid initialization of constexpr object with mutable member

2014-09-15 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58102 --- Comment #2 from Paolo Carlini --- Richard I'm trying to fix this bug, and while working on a draft I noticed that current clang accepts: struct A { int i; mutable int j; }; constexpr A a = { 0, 1 }; constexpr A b = a; ie, doesn't rejec

[Bug lto/63226] [5 Regression] ICE with -flto-odr-type-merging

2014-09-15 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63226 Markus Trippelsdorf changed: What|Removed |Added CC||mliska at suse dot cz --- Comment

[Bug ipa/63270] [5 Regression] internal compiler error: in odr_types_equivalent_p, at ipa-devirt.c:1075

2014-09-15 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63270 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug ipa/63270] [5 Regression] internal compiler error: in odr_types_equivalent_p, at ipa-devirt.c:1075

2014-09-15 Thread mliska at suse dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63270 --- Comment #1 from Martin Liška --- Created attachment 33495 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33495&action=edit preparser.ii

[Bug ipa/63270] New: [5 Regression] internal compiler error: in odr_types_equivalent_p, at ipa-devirt.c:1075

2014-09-15 Thread mliska at suse dot cz
.c:2212 0x576745 lto_create_files_from_ids ../../gcc/lto/lto.c: 0x576745 lto_file_read ../../gcc/lto/lto.c:2263 0x576745 read_cgraph_and_symbols ../../gcc/lto/lto.c:2966 0x576745 lto_main() ../../gcc/lto/lto.c:3420 gcc --version: gcc (GCC) 5.0.0 20140915 (experimental) Thanks, Martin

[Bug go/63269] libgo/math test failures in TestLog2

2014-09-15 Thread vogt at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63269 --- Comment #1 from Dominik Vogt --- Created attachment 33493 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33493&action=edit Proposed fixes

[Bug go/63269] New: libgo/math test failures in TestLog2

2014-09-15 Thread vogt at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63269 Bug ID: 63269 Summary: libgo/math test failures in TestLog2 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go A

[Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)

2014-09-15 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244 Markus Trippelsdorf changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Com

[Bug c++/63268] Ambiguous non-specialized static template scope is accepted

2014-09-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63268 Jonathan Wakely changed: What|Removed |Added Resolution|FIXED |INVALID --- Comment #6 from Jonathan W

[Bug c++/63268] Ambiguous non-specialized static template scope is accepted

2014-09-15 Thread dak at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63268 David Kastrup changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #5 from David Kastrup

[Bug c++/63268] Ambiguous non-specialized static template scope is accepted

2014-09-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63268 --- Comment #4 from Jonathan Wakely --- This is even documented as a fix in GCC 4.5, see https://gcc.gnu.org/gcc-4.5/changes.html#cplusplus

[Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)

2014-09-15 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244 Markus Trippelsdorf changed: What|Removed |Added CC||ccoutant at gcc dot gnu.org --- Co

[Bug c++/63268] Ambiguous non-specialized static template scope is accepted

2014-09-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63268 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/63268] Ambiguous non-specialized static template scope is accepted

2014-09-15 Thread dak at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63268 David Kastrup changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c++/63254] elfos.h missing space between literal and identifier.

2014-09-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63254 --- Comment #1 from Jonathan Wakely --- Created attachment 33492 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33492&action=edit add spaces around macro I was trying to test this fix but the machine I was using is unreachable.

[Bug c++/63268] Ambiguous non-specialized static template scope is accepted

2014-09-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63268 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/63234] arm used label is removed

2014-09-15 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63234 Richard Earnshaw changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug c++/63268] New: Ambiguous non-specialized static template scope is accepted

2014-09-15 Thread dak at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63268 Bug ID: 63268 Summary: Ambiguous non-specialized static template scope is accepted Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Pr

[Bug target/61387] [5 Regression] ~900 test failures on on x86_64-apple-darwin13 for g++ with -m64 after r211089

2014-09-15 Thread fxcoudert at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61387 --- Comment #14 from Francois-Xavier Coudert --- I posted here test results with the patch: https://gcc.gnu.org/ml/gcc-testresults/2014-09/msg01449.html (on x86_64-apple-darwin14).

[Bug lto/63242] memory starvation caused by flatten attribute

2014-09-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63242 Richard Biener changed: What|Removed |Added CC||hubicka at gcc dot gnu.org,

[Bug bootstrap/63253] [5 Regression] LTO boot strap failure due to ODR warnings

2014-09-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63253 Richard Biener changed: What|Removed |Added Target Milestone|--- |5.0 Summary|boot strap failu

[Bug tree-optimization/63255] [5.0 regression] FAIL: gcc.dg/lto/ipareference2 c_lto_ipareference2_0.o-c_lto_ipareference2_1.o execute -O1 -flto -flto-partition=1to1 -fwhole-program

2014-09-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63255 Richard Biener changed: What|Removed |Added Target|powerpc64-*-* |powerpc64-*-*, x86_64-*-* S

[Bug target/63256] [5.0 regression] FAIL: gcc.dg/sms-8.c scan-rtl-dump-times sms "SMS succeeded" 0

2014-09-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63256 Richard Biener changed: What|Removed |Added Target Milestone|--- |5.0

[Bug testsuite/63258] [5.0 regression] FAIL: gcc.dg/vect/costmodel/ppc/costmodel-slp-33.c scan-tree-dump-times vect "vectorization not profitable" 1

2014-09-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63258 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/63267] Static member of template class is not constructed before it's used.

2014-09-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63267 --- Comment #1 from Jonathan Wakely --- I think GCC's behaviour is allowed by the standard. You do not explicitly instantiate the static member 'Test::out', so the compiler provides an implicit instantiation which is placed at the end of the file

[Bug tree-optimization/63266] [5 Regression] Test regression: gcc.target/sh/pr53568-1.c

2014-09-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63266 Richard Biener changed: What|Removed |Added Target Milestone|--- |5.0

[Bug c++/63265] Constexpr variables can trigger spurious compiler warnings

2014-09-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63265 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIR

[Bug c++/63267] New: Static member of template class is not constructed before it's used.

2014-09-15 Thread yuxiao1985 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63267 Bug ID: 63267 Summary: Static member of template class is not constructed before it's used. Product: gcc Version: 4.4.7 Status: UNCONFIRMED Severity: major

[Bug tree-optimization/63266] [5 Regression] Test regression: gcc.target/sh/pr53568-1.c

2014-09-15 Thread thopre01 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63266 thopre01 at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed