From mboxrd@z Thu Jan 1 00:00:00 1970 From: togawa@acm.org To: gcc-gnats@gcc.gnu.org Subject: c++/2094: gcc3.1 emits 'sorry, not implemented: use of `ptrmem_cst' in template type unification' Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <20010226072114.26931.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q1/msg01723.html List-Id: >Number: 2094 >Category: c++ >Synopsis: gcc3.1 emits 'sorry, not implemented: use of `ptrmem_cst' in template type unification' >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Sun Feb 25 23:26:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Atsushi Togawa >Release: gcc version 3.1 20010225 (experimental) >Organization: >Environment: i686-pc-linux-gnu, RedHat 6.2 >Description: Gcc emits the following error message when I compile the code in the 'How-To-Repeat' section. t.cc:16: sorry, not implemented: use of `ptrmem_cst' in template type unification t.cc: In function `void f()': t.cc:16: warning: unused variable `bar i' >How-To-Repeat: Compiling the following code with 'gcc -c ' will repeat the problem. template struct bar { bar() {} template bar(const bar& x) {} }; struct baz { int the_foo_; }; void f() { bar i = bar(); } >Fix: >Release-Note: >Audit-Trail: >Unformatted: