2

Closed

VS2010 Crash after declaring Const date

description

Environment: VS2010 VB(express)
 
by declaring the below statement will crash the VS2010
Public Const INFINITE_DATE As Date = #12/31/9999#
 
This can be reproduce easily with any date. Currently I can only use a variable to store this date using the following statement.
public INFINITE_DATE as Date = #12/31/9999#
Closed Sep 25, 2012 at 8:13 PM by ZachLibby

comments

wrote Sep 25, 2012 at 8:13 PM

We will not fix this in v4.2 and in v4.3 with VS2012 it dosn't crash, but will produce a compiler error.