From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1702 invoked by alias); 20 May 2003 03:16:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1688 invoked by uid 71); 20 May 2003 03:16:00 -0000 Date: Tue, 20 May 2003 03:16:00 -0000 Message-ID: <20030520031600.1687.qmail@sources.redhat.com> To: gdr@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Giovanni Bajo" Subject: Re: c++/10864: [diagnostic] Unreadable error message for "no match for 'A < B' operator" if A,B are templates Reply-To: "Giovanni Bajo" X-SW-Source: 2003-05/txt/msg02143.txt.bz2 List-Id: The following reply was made to PR c++/10864; it has been noted by GNATS. From: "Giovanni Bajo" To: , , , , Cc: Subject: Re: c++/10864: [diagnostic] Unreadable error message for "no match for 'A < B' operator" if A,B are templates Date: Tue, 20 May 2003 05:06:51 +0200 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10864 For reference: GCC with StlFilt: pr10864.cpp: In member function `bool less, vector > >::foo()': pr10864.cpp:10: instantiated from here pr10864.cpp:5: error: no match for `X, vector > < X, vector >' operator Comeau: "pr10864.cpp", line 5: error: no operator "<" matches these operands operand types are: X>, std::vector>> < X>, std::vector>> bool foo () { return T() < T(); } ^ detected during instantiation of "bool less::foo() [with T=X>, std::vector>>]" at line 10 Comeau with StlFilt (yes, it screws indentation a little): pr10864.cpp(5): error: no operator "<" matches these operands operand types are: X, vector> < X, vector> bool foo () { return T() < T(); } ^ detected during instantiation of "bool less, vector>>::foo()" at line 10 Giovanni Bajo