From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14723 invoked by alias); 4 May 2003 17:16:01 -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 14709 invoked by uid 71); 4 May 2003 17:16:01 -0000 Date: Sun, 04 May 2003 17:16:00 -0000 Message-ID: <20030504171601.14708.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Giovanni Bajo" Subject: Re: c++/9259: [2003-04-07] Calling a non-qualified member function within a sizeof() expression leads to "invalid use of undefined type" Reply-To: "Giovanni Bajo" X-SW-Source: 2003-05/txt/msg00240.txt.bz2 List-Id: The following reply was made to PR c++/9259; it has been noted by GNATS. From: "Giovanni Bajo" To: , , , , Cc: Subject: Re: c++/9259: [2003-04-07] Calling a non-qualified member function within a sizeof() expression leads to "invalid use of undefined type" Date: Sun, 4 May 2003 19:10:57 +0200 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9259 It was not noted in this PR, but to fix the bug it's sufficient to qualify the function call (sizeof(S::check()) instead of sizeof(check())), which means that the bug happens only in non-qualified member function calls within sizeof expressions. Giovanni Bajo