First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 3494
Product:  
Component:  
Status: RESOLVED
Resolution: FIXED
Assigned To: Gabriel Dos Reis <gdr@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: 81122-quiet@bugs.debian.org
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 3494 depends on: Show dependency tree
Show dependency graph
Bug 3494 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2001-06-30 04:46
[ Reported to the Debian BTS as report #81122.
  Please CC 81122-quiet@bugs.debian.org on replies.
  Log of report can be found at http://bugs.debian.org/81122 ]
 	

http://gcc.gnu.org/ml/gcc-bugs/2001-01/msg00721.html

The following little program (this is the *.ii file)
---snip---
# 1 "k.cc"
class _fred {
    virtual void do_it(int, int) =0;
};

typedef _fred * fred;

class _barney:public _fred{
    using fred::do_it;
};
---snip---

causes an internal compiler error 89 in line 9 when using "g++ -c".

Note that of course the code is wrong, as fred is the pointer not the
class, but an internal compiler error is a little harsh an error
message.

This is not the known using-bug found on the web page, AFAICS.

Release:
3.0 (Debian GNU/Linux)

Environment:
System: Debian GNU/Linux (testing/unstable)
Architecture: i686
	
host: i386-linux
build: i386-linux
target: i386-linux
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux

------- Comment #1 From Gabriel Dos Reis 2001-08-12 03:12 -------
Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-Why: See below.

------- Comment #2 From Gabriel Dos Reis 2001-08-12 03:12 -------
State-Changed-From-To: open->analyzed
State-Changed-Why: Pacth in progress.

------- Comment #3 From Craig Rodrigues 2002-02-23 18:33 -------
State-Changed-From-To: analyzed->closed
State-Changed-Why: With gcc 3.0.4, the following compiler ICE occurs:
    k.cc:1: warning: all member functions in class `_fred' are private
    k.cc:7: Internal error #89.
    k.cc:7: Internal compiler error in get_binfo, at cp/search.c:273
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
    
    
    With gcc version 3.1 20020217 (experimental), the compiler
    does not ICE and the following compilation error results:
    
    
    k.cc:1: warning: all member functions in class `_fred' are private
    k.cc:7: type `_fred*' is not a base type for type `_barney'

First Last Prev Next    No search results available      Search page      Enter new bug