From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13455 invoked by alias); 1 Apr 2007 15:57:38 -0000 Received: (qmail 13288 invoked by alias); 1 Apr 2007 15:57:27 -0000 Date: Sun, 01 Apr 2007 15:57:00 -0000 Message-ID: <20070401155727.13286.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/31419] template user defined conversion operator instantiated for conversion to self In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fang at csl dot cornell dot edu" 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: 2007-04/txt/msg00018.txt.bz2 ------- Comment #3 from fang at csl dot cornell dot edu 2007-04-01 16:57 ------- Subject: Re: template user defined conversion operator instantiated for conversion to self > There is no operator() in the code. And there is no undefined > behavior is the reference is not used. But that's not the > point. What the user defined conversion operator does is > irrelevant, since it should never even be instantiated. > > (This is not the actual code in my application, of course. I've > simplified it to the maximum.) Yep, I realize it's irrelevant, which is why I mentioned it as an 'aside'. :) Just brought it up in case the non-reduced version in your original code does actually use it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31419