From owner-freebsd-ports@FreeBSD.ORG Sat May 17 17:01:03 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ADA597A2 for ; Sat, 17 May 2014 17:01:03 +0000 (UTC) Received: from um-nip4-missouri-out.um.umsystem.edu (um-nip4-missouri-out.um.umsystem.edu [198.209.49.177]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "um-tip1.um.umsystem.edu", Issuer "InCommon Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 69F6024F3 for ; Sat, 17 May 2014 17:01:03 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah8FAN6Ud1PPoJ7U/2dsb2JhbABZgwZPWKlDCwEFBps1FnSCLHgTASkWGAMCAQIBICcEDQgBAYg9nWmtZIVYF4VVjUIEiVuRPJFdgzeCMA X-IPAS-Result: Ah8FAN6Ud1PPoJ7U/2dsb2JhbABZgwZPWKlDCwEFBps1FnSCLHgTASkWGAMCAQIBICcEDQgBAYg9nWmtZIVYF4VVjUIEiVuRPJFdgzeCMA Received: from um-ncas6.um.umsystem.edu ([207.160.158.212]) by um-nip4-exch-relay.um.umsystem.edu with ESMTP; 17 May 2014 12:00:56 -0500 Received: from UM-MBX-N02.um.umsystem.edu ([169.254.5.16]) by UM-NCAS6.um.umsystem.edu ([207.160.158.212]) with mapi id 14.03.0181.006; Sat, 17 May 2014 12:00:56 -0500 From: "Montgomery-Smith, Stephen" To: FreeBSD Ports Subject: clang problems with math/octave-forge-miscellaneous Thread-Topic: clang problems with math/octave-forge-miscellaneous Thread-Index: AQHPcfGR/OF95qqYVkKQ5NSQe84Wqg== Date: Sat, 17 May 2014 17:00:55 +0000 Message-ID: <537795C5.2050609@missouri.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 x-originating-ip: [207.160.158.205] Content-Type: text/plain; charset="iso-8859-1" Content-ID: <9B3B45AEE826A84C83933837D6DB145D@missouri.edu> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2014 17:01:03 -0000 I am trying to make the port math/octave-forge-miscellaneous clang compliant. In the file ${WRKSRC}/partarray.cc is are lines like this: Array bidc [maxdims], eidc [maxdims]; ... stuff ... eidc[i] =3D eidx; The compilation dies saying that eidc is not defined. If I rewrite the first line as Array bidc [maxdims]; Array eidc [maxdims]; then it compiles just fine. Is this a bug in the clang C++ compiler, or am I misunderstanding something about C++? Thanks, Stephen=