Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 81151 invoked from network); 8 Mar 2006 22:59:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Mar 2006 22:59:06 -0000 Received: (qmail 55510 invoked by uid 500); 8 Mar 2006 22:59:06 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 55489 invoked by uid 500); 8 Mar 2006 22:59:06 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 55478 invoked by uid 500); 8 Mar 2006 22:59:05 -0000 Delivered-To: apmail-incubator-stdcxx-cvs@incubator.apache.org Received: (qmail 55475 invoked by uid 99); 8 Mar 2006 22:59:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Mar 2006 14:59:05 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 08 Mar 2006 14:59:05 -0800 Received: (qmail 81039 invoked by uid 65534); 8 Mar 2006 22:58:44 -0000 Message-ID: <20060308225844.81038.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r384365 - /incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp Date: Wed, 08 Mar 2006 22:58:44 -0000 To: stdcxx-cvs@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: sebor Date: Wed Mar 8 14:58:42 2006 New Revision: 384365 URL: http://svn.apache.org/viewcvs?rev=384365&view=rev Log: 2006-03-08 Martin Sebor * STD_BAD_TYPEID.cpp (type_info): Defined class when the header (or is not available to avoid false negatives (such as with Intel C++ on Linux). Modified: incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp Modified: incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp?rev=384365&r1=384364&r2=384365&view=diff ============================================================================== --- incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp (original) +++ incubator/stdcxx/trunk/etc/config/src/STD_BAD_TYPEID.cpp Wed Mar 8 14:58:42 2006 @@ -11,9 +11,12 @@ # include # else -// using typeid() without #including first -// yields undefined behavior... +// 5.2.8, p6 [expr.typeid]: +// If the header is not included prior to a use of typeid, +// the program is ill-formed. namespace std { + +class type_info { }; class bad_typeid { };