Extensive testing* suggests this is probably fine for Windows now that we're on 2015.* Not-actually-extensive:d:\src\x>type a.cc && cl /W4 /wd 4577 /wd4530 /Bv /nologo a.cc && a#include <stdio.h>int main() {const char* x = __func__;printf("__func__: %s\n", x);}Compiler Passes:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86\cl.exe: Version 19.00.23918.0C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86\c1.dll: Version 19.00.23918.0C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86\c1xx.dll: Version 19.00.23918.0C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86\c2.dll: Version 19.00.23918.0C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86\link.exe: Version 14.00.23918.0C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\mspdb140.dll: Version 14.00.23918.0C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86\1033\clui.dll: Version 19.00.23918.0a.cc__func__: mainOn Mon, Jun 27, 2016 at 1:27 PM, Rob Percival <robpe...@google.com> wrote:Should this now be moved off of the banned list?
On Thursday, 25 September 2014 01:44:55 UTC+1, Peter Kasting wrote:On Wed, Sep 24, 2014 at 4:52 PM, Peter Kasting <pkas...@google.com> wrote:On Wed, Sep 24, 2014 at 4:43 PM, Scott Graham <sco...@chromium.org> wrote:a.cc(3) : error C2065: '__func__' : undeclared identifierSo, -1 for now.Yeah, I agree. Let's put this on the banned list with a note about MSVC not supporting it.I'd like to reconsider if/when support becomes available.Note: According to http://blogs.msdn.com/b/vcblog/archive/2013/12/02/c-11-14-core-language-features-in-vs-2013-and-the-nov-2013-ctp.aspx , the Nov 2013 CTP supports __func__, which means I suspect support will be present in the next major MSVC version.PK
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To post to this group, send email to c...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/cb8f4e30-b5ee-4fd1-a396-b634ad13bc29%40chromium.org.