From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 551 invoked by alias); 21 Apr 2012 23:43:54 -0000 Received: (qmail 543 invoked by uid 22791); 21 Apr 2012 23:43:53 -0000 X-SWARE-Spam-Status: No, hits=3.2 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nm36-vm6.bullet.mail.bf1.yahoo.com (HELO nm36-vm6.bullet.mail.bf1.yahoo.com) (72.30.238.142) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 21 Apr 2012 23:43:23 +0000 Received: from [98.139.212.145] by nm36.bullet.mail.bf1.yahoo.com with NNFMP; 21 Apr 2012 23:43:22 -0000 Received: from [98.139.212.204] by tm2.bullet.mail.bf1.yahoo.com with NNFMP; 21 Apr 2012 23:43:22 -0000 Received: from [127.0.0.1] by omp1013.mail.bf1.yahoo.com with NNFMP; 21 Apr 2012 23:43:22 -0000 Received: (qmail 49440 invoked by uid 60001); 21 Apr 2012 23:43:22 -0000 Received: from [70.115.49.166] by web162803.mail.bf1.yahoo.com via HTTP; Sat, 21 Apr 2012 16:43:22 PDT Message-ID: <1335051802.47595.YahooMailNeo@web162803.mail.bf1.yahoo.com> Date: Sat, 21 Apr 2012 23:43:00 -0000 From: rick shelton Reply-To: rick shelton Subject: in-class function definitions? To: "gcc@gcc.gnu.org" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg00765.txt.bz2 How does the compiler handle an in-class function definition? Example: // File A.h class A { =A0int foo(void) { return x; } =A0int bar(void); =A0int x; } // File A.cc #include "A.h" int A::bar(void) { ... } How is "foo()" represented in the AST when parsing A.cc? Thanks, rick