* [Bug c++/59292] Spurious warning: ‘<anonymous>’ is used uninitialized in this function
2013-11-25 19:17 [Bug c++/59292] New: Spurious warning: ‘<anonymous>’ is used uninitialized in this function bluesmissionnaire at gmail dot com
@ 2013-11-25 22:58 ` manu at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: manu at gcc dot gnu.org @ 2013-11-25 22:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59292
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |manu at gcc dot gnu.org
Resolution|--- |WORKSFORME
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Thanks for the report. However, this testcase is not very useful for the
regression testsuite. We need a minimal testcase:
http://gcc.gnu.org/bugs/minimize.html.
Since you say that the bug is not present in newer releases (4.4 is very old),
I think it is better to close this.
>From gcc-bugs-return-435842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Nov 25 23:04:30 2013
Return-Path: <gcc-bugs-return-435842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7060 invoked by alias); 25 Nov 2013 23:04:30 -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 7005 invoked by uid 48); 25 Nov 2013 23:04:27 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/59293] Bogus -Wsign-compare warning when using typeof() on a constant
Date: Mon, 25 Nov 2013 23:04: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-Version: 4.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-59293-4-kTauIV651X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59293-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59293-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-11/txt/msg02619.txt.bz2
Content-length: 765
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59293
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |manu at gcc dot gnu.org
Resolution|--- |DUPLICATE
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
This would require CCP in the FE or moving these warnings to the middle-end,
which is something that no current developer thinks is a good idea.
Clang also warns here.
*** This bug has been marked as a duplicate of bug 38470 ***
>From gcc-bugs-return-435843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Nov 25 23:04:32 2013
Return-Path: <gcc-bugs-return-435843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7288 invoked by alias); 25 Nov 2013 23:04:32 -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 7023 invoked by uid 48); 25 Nov 2013 23:04:28 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/38470] value range propagation (VRP) would improve -Wsign-compare
Date: Mon, 25 Nov 2013 23:04: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-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-38470-4-FiaGGVGatU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-38470-4@http.gcc.gnu.org/bugzilla/>
References: <bug-38470-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-11/txt/msg02620.txt.bz2
Content-length: 487
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38470
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |shawn at churchofgit dot com
--- Comment #12 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
*** Bug 59293 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-435844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Nov 25 23:33:36 2013
Return-Path: <gcc-bugs-return-435844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3349 invoked by alias); 25 Nov 2013 23:33:35 -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 3314 invoked by uid 48); 25 Nov 2013 23:33:31 -0000
From: "stefan.schwarzer at ipm dot fraunhofer.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59294] New: template friend declaration 'hidden' by member of same name
Date: Mon, 25 Nov 2013 23:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: stefan.schwarzer at ipm dot fraunhofer.de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-59294-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-11/txt/msg02621.txt.bz2
Content-length: 3502
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59294
Bug ID: 59294
Summary: template friend declaration 'hidden' by member of same
name
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: stefan.schwarzer at ipm dot fraunhofer.de
/* Dear experts,
I would like to use the same identifier for a member function and
a friend function of similar signature. Either declaring the friend
or the member works fine, but if both (#ifdef PROBLEM true) are present,
g++ starts yelling at me:
*/
template <class T> class Q;
template <class T>
const Q<T> conjugate(const Q<T> &);
template<class T>
struct Q {
#define PROBLEM
#ifdef PROBLEM
const Q conjugate() { return *this; }
#endif
friend const Q<T> conjugate<T>(const Q<T> &); // PROBLEM
// friend const Q conjugate<T>(const Q &); // -- equivalent
// friend const Q conjugate<>(const Q &); // -- equivalent
};
template <class T>
const Q<T> conjugate(const Q<T> &) { return Q<T>(); }
int main () {
Q<int> q;
#ifdef PROBLEM
q.conjugate();
#endif
conjugate(q);
return 0;
}
/*
$ g++ t.cc
t.cc:17:20: error: ‘conjugate’ is neither function nor member function; cannot
be declared friend
friend const Q<T> conjugate<T>(const Q<T> &);
^
t.cc:17:20: error: expected ‘;’ at end of member declaration
t.cc:17:29: error: expected unqualified-id before ‘<’ token
friend const Q<T> conjugate<T>(const Q<T> &);
Nothing I tried really helps:
- the existence or not of the forward declaration does not help
- my three feeble attempts of syntax variation (in comments) behave
equivalently
- using a qualified-id ::conjugate in the friend declaration only changes the
error message
Am I missing something basic or is this a compiler bug?
(debian testing)
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.2-1'
--with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.8 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre
--enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Debian 4.8.2-1)
*/
>From gcc-bugs-return-435845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Nov 25 23:48:31 2013
Return-Path: <gcc-bugs-return-435845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8822 invoked by alias); 25 Nov 2013 23:48:30 -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 8780 invoked by uid 48); 25 Nov 2013 23:48:25 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58950] [4.9 Regression] Missing "statement has no effect"
Date: Mon, 25 Nov 2013 23:48: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-Version: 4.9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-58950-4-6K0wycwRg8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58950-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58950-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-11/txt/msg02622.txt.bz2
Content-length: 625
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58950
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
You could decorate __builtin_shuffle with attribute "warn_unused_result". It is
not the same, but it probably more precise. It would also warn for:
__builtin_shuffle(x,++m), while -Wunused-value would not.
>From gcc-bugs-return-435846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Nov 25 23:49:09 2013
Return-Path: <gcc-bugs-return-435846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9548 invoked by alias); 25 Nov 2013 23:49:09 -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 9510 invoked by uid 48); 25 Nov 2013 23:49:06 -0000
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/59198] [4.7/4.8/4.9 Regression] ICE on cyclically dependent polymorphic types
Date: Mon, 25 Nov 2013 23:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: burnus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-59198-4-RDDlkrFjFs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59198-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59198-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-11/txt/msg02623.txt.bz2
Content-length: 683
http://gcc.gnu.org/bugzilla/show_bug.cgi?idY198
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to janus from comment #1)
> The ICE I get with trunk is: [...]
That's for the variable __decays_MOD___def_init_decays_Decay_t, which has the
fields decay_gen_t and rng. At the end, the problem is that t == NULL_TREE in
4933 fieldsize = tree_to_uhwi (DECL_SIZE_UNIT (local->field));
^ permalink raw reply [flat|nested] 2+ messages in thread