Информация об изменениях

Сообщение VS bug: new int(1,2,"wtf") от 06.03.2015 0:31

Изменено 06.03.2015 0:33 Constructor

Здравствуйте, Кодт, Вы писали:

К>Чудеса си-стайл-каста.


Visual Studio 2013 (w/o updates) выдает internal compiler error, если закомментировать строчку p = new int("wtf");:

main.cpp(26): fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\trees.h', line 588)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information


Забавно, что в Visual Studio 2013 Update 4 упоминаемая строка в файлике trees.h имеет номер уже 589.

В Visual Studio 2015 этот баг, похоже, поправили: ошибки также выдаются во всех случаях, кроме первых двух (свежайшая версия Visual C++ 19.0 доступна на http://rise4fun.com/vcpp).
VS bug: new int(1,2,"wtf")
Здравствуйте, Кодт, Вы писали:

К>Чудеса си-стайл-каста.


Visual Studio 2013 (w/o updates) выдает internal compiler error, если закомментировать строчку p = new int("wtf");:

main.cpp(26): fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\trees.h', line 588)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information


Забавно, что в Visual Studio 2013 Update 4 упоминаемая строка в файлике trees.h имеет номер уже 589.

В Visual Studio 2015 этот баг, похоже, поправили: ошибки также выдаются во всех случаях, кроме первых двух (свежайшая версия Visual C++ 19.0 доступна онлайн на http://rise4fun.com/vcpp).