From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14564 invoked by alias); 14 Sep 2004 17:40:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 14544 invoked by uid 48); 14 Sep 2004 17:40:17 -0000 Date: Tue, 14 Sep 2004 17:40:00 -0000 Message-ID: <20040914174017.14543.qmail@sourceware.org> From: "nathan at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040912055243.17431.yoav.frandzel@intel.com> References: <20040912055243.17431.yoav.frandzel@intel.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/17431] [3.4/4.0 regression] Internal error: Segmentation fault (program cc1plus) X-Bugzilla-Reason: CC X-SW-Source: 2004-09/txt/msg01569.txt.bz2 List-Id: ------- Additional Comments From nathan at gcc dot gnu dot org 2004-09-14 17:40 ------- Hey, guess what, the test case isn't invalid (or the std does not say what it means). struct B : A { B(int); B(B&); B(A); }; In the call to foo, we have to copy the rvalue temp created by B::B(int) -- this copy & temp can and will be elided, but we must check that it is doable. B::B(B&) can't do this, because it has a non-const reference arg, but, B(A) can do it via A's implicit const-copy constructor. EDG 3.4 rejects this code though, and one of our auto_ptr testcases now compiles, due to such a 'sideways' copy path. I'm clarifying with EDG as to what the intent of the std is. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17431