From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1362 invoked by alias); 24 Oct 2010 19:59:36 -0000 Received: (qmail 1351 invoked by uid 22791); 24 Oct 2010 19:59:35 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID,TW_WK X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 24 Oct 2010 19:59:31 +0000 From: "wkf at alum dot mit.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/46158] Spurious never executed warning 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: wkf at alum dot mit.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 24 Oct 2010 19:59:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg02044.txt.bz2 Message-ID: <20101024195900.3M7r6XrJydepAagiEMOm0YsIpRmEgDJhomI8Kd880j4@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46158 --- Comment #1 from William K Foster 2010-10-24 19:59:23 UTC --- Also, in a much more complicated test case (not provided) I get a much more obtuse warning message that does not refer me to my file, but instead a header: /usr/include/c++/4.2/bits/allocator.h: In copy constructor 'std::allocator<_Alloc>::allocator(const std::allocator<_Alloc>&) [with _Tp = char]': /usr/include/c++/4.2/bits/allocator.h:103: warning: will never be executed /usr/include/c++/4.2/bits/allocator.h:102: warning: will never be executed /usr/include/c++/4.2/ext/new_allocator.h: In copy constructor '__gnu_cxx::new_allocator<_Tp>::new_allocator(const __gnu_cxx::new_allocator<_Tp>&) [with _Tp = char]': /usr/include/c++/4.2/ext/new_allocator.h:70: warning: will never be executed /usr/include/c++/4.2/bits/allocator.h: In destructor 'std::allocator<_Alloc>::~allocator() [with _Tp = char]': /usr/include/c++/4.2/bits/allocator.h:108: warning: will never be executed /usr/include/c++/4.2/ext/new_allocator.h: In destructor '__gnu_cxx::new_allocator<_Tp>::~new_allocator() [with _Tp = char]': /usr/include/c++/4.2/ext/new_allocator.h:75: warning: will never be executed /usr/include/c++/4.2/bits/allocator.h: In destructor 'std::allocator<_Alloc>::~allocator() [with _Tp = char]': /usr/include/c++/4.2/bits/allocator.h:108: warning: will never be executed gmake: *** [ARCH.freebsd_61_i86/debug/opFlume_delta.o] Error 1