From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21763 invoked by alias); 2 Sep 2010 17:17:09 -0000 Received: (qmail 21682 invoked by uid 48); 2 Sep 2010 17:16:47 -0000 Date: Thu, 02 Sep 2010 17:17:00 -0000 Message-ID: <20100902171647.21681.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/45501] Compiler does not find template function if member is addressed with "this" In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paolo dot carlini at oracle dot com" 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: 2010-09/txt/msg00324.txt.bz2 ------- Comment #1 from paolo dot carlini at oracle dot com 2010-09-02 17:16 ------- Since PrintTextFrom is a template, you can (should) write: this->prn.template PrintTextFrom< MetaObj >(); which works with both compilers. Since apparently ICC 11.1 likes in strict mode also the form without 'template' let's ask Jason if we are right in rejecting it (while accepting it without this->) -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45501