Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 58529 invoked from network); 20 May 2008 21:23:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 May 2008 21:23:22 -0000 Received: (qmail 80150 invoked by uid 500); 20 May 2008 21:23:20 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 80137 invoked by uid 500); 20 May 2008 21:23:20 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 80119 invoked by uid 99); 20 May 2008 21:23:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 14:23:20 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 21:22:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AB529234C11A for ; Tue, 20 May 2008 14:22:55 -0700 (PDT) Message-ID: <1060737305.1211318575698.JavaMail.jira@brutus> Date: Tue, 20 May 2008 14:22:55 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-936) [Sun C++] fails to #include standard headers more than once In-Reply-To: <1155920693.1210896775760.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598479#action_12598479 ] Martin Sebor commented on STDCXX-936: ------------------------------------- Reported as bug [6688168|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6688168]. Steve Clamage moved it to RFE [6703971|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6703971] > [Sun C++] fails to #include standard headers more than once > ----------------------------------------------------------- > > Key: STDCXX-936 > URL: https://issues.apache.org/jira/browse/STDCXX-936 > Project: C++ Standard Library > Issue Type: Bug > Components: External > Environment: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 > Reporter: Martin Sebor > > The program below fails to compile with Sun C++. The compiler assumes {{}} refers to its own header rather than the one provided by the user in the same directory as the program source code, t.cpp. > {noformat} > $ cat -n limits && cat -n t.cpp && CC -c -I. -library=%none -V t.cpp > 1 // limits > 2 static int foo = 0; > 1 // t.cpp > 2 #include > 3 #define foo bar > 4 #include > 5 #undef foo > 6 > 7 int main () > 8 { > 9 return foo + bar; > 10 } > CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 > ccfe: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 > "t.cpp", line 9: Error: bar is not defined. > 1 Error(s) detected. > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.