public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67851] New: improve "no unique final overrider" error
@ 2015-10-05 13:05 manu at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: manu at gcc dot gnu.org @ 2015-10-05 13:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67851

            Bug ID: 67851
           Summary: improve "no unique final overrider" error
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manu at gcc dot gnu.org
  Target Milestone: ---

Taken from
http://stackoverflow.com/questions/24006199/virtual-inheritance-error-no-unique-final-overrider

cc1plus:

test.cc:29:7: error: no unique final overrider for ‘virtual void base::fun()’
in ‘der3’
 class der3 : public der1,public der2
       ^

clang++:

38 : error: virtual function 'base::fun' has more than one final overrider in
'der3'
14 : note: overridden virtual function is here
23 : note: final overrider of 'base::fun' in 'der1'
32 : note: final overrider of 'base::fun' in 'der2'


It would be useful if GCC also mentioned which ones are the overriders. In a
complex codebase it could be difficult to figure it out.
>From gcc-bugs-return-498779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 05 13:11:37 2015
Return-Path: <gcc-bugs-return-498779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113393 invoked by alias); 5 Oct 2015 13:11:36 -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 112578 invoked by uid 48); 5 Oct 2015 13:11:33 -0000
From: "julien.boucaron at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67852] New: false warning: trigraph reported
Date: Mon, 05 Oct 2015 13:11: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: 5.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: trivial
X-Bugzilla-Who: julien.boucaron at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
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 target_milestone
Message-ID: <bug-67852-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: 2015-10/txt/msg00334.txt.bz2
Content-length: 1665

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg852

            Bug ID: 67852
           Summary: false warning: trigraph reported
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: julien.boucaron at gmail dot com
  Target Milestone: ---

False warning reported in this very small thing:

#include <iostream>

int main() {
  std::cout << "test6: BEGIN (PROBLEM HERE???)" << std::endl;
  return 0;
}


Gcc output:

 g++ -Wall -c parser_issue.cc
parser_issue.cc:4:44: warning: trigraph ??) ignored, use -trigraphs to enable
[-Wtrigraphs]
   std::cout << "test6: BEGIN (PROBLEM HERE???)" << std::endl;


Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/5.1.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-linker-hash-style=gnu --enable-plugin --enable-initfini-array
--disable-libgcj --with-default-libstdcxx-abi=c++98 --with-isl --enable-libmpx
--enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-05 13:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-05 13:05 [Bug c++/67851] New: improve "no unique final overrider" error manu at gcc dot gnu.org

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).