Date: Thu, 29 Dec 2011 18:43:02 +0100 From: Andreas Tobler <andreast@FreeBSD.org> To: Ed Schouten <ed@FreeBSD.org> Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r228955 - head/include Message-ID: <4EFCA6A6.6080103@FreeBSD.org> In-Reply-To: <201112291441.pBTEfI8l060127@svn.freebsd.org> References: <201112291441.pBTEfI8l060127@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 29.12.11 15:41, Ed Schouten wrote: > Author: ed > Date: Thu Dec 29 14:41:17 2011 > New Revision: 228955 > URL: http://svn.freebsd.org/changeset/base/228955 > > Log: > Don't define static_assert for C++. > > Even though _Static_assert() is pretty robust for C code, it cannot work > correctly with C++ code. This is due to the fact that C++ template > parameters may contain commas that are not enclosed in parentheses. For > example: > > static_assert(foo<int, int>::bar == baz, "..."); > > This causes _Static_assert to be called with an excessive number of > parameters. If you want to use static_assert in C++, just use a C++11 > compiler. > > Reported on: current@, ports@ Thank you Ed! gcc-4.6 bootstrap successful. Andreas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EFCA6A6.6080103>