The sources of the Free Pascal compiler, RTL, packages and utilities. See https://www.freepascal.org/ for more info.
Go to file
svenbarth a7a9440692 Add a new warning message that is generated if an instance of an abstract class is created. This message is disabled by default, but can be switched on by using {$warn 4122 on} or {$warn 4122 error}.
Please note that this warning won't be triggered if an instance of that class is created using a class variable of that class type as the compiler can not know the type contained in the variable at compile time (see also the added test).

+ msg/errore.msg: added disabled message which informs about the instantiation of an abstract class
* pexpr.pas, do_member_read: generate the message if we have a constructor call for an abstract class using a loadvmtaddrnode (thus the type name is used and not a class variable)

* msg{idx,txt}.inc: updated

+ added test

git-svn-id: trunk@28127 -
2014-07-01 20:41:05 +00:00
compiler Add a new warning message that is generated if an instance of an abstract class is created. This message is disabled by default, but can be switched on by using {$warn 4122 on} or {$warn 4122 error}. 2014-07-01 20:41:05 +00:00
ide * add possibility of overriding the disabled VESA driver using /VESA 2014-05-17 16:31:51 +00:00
installer * package openssl supported for OS/2 now 2014-05-03 22:35:50 +00:00
packages fcl-db: tests: fix of previous commit 2014-06-25 09:55:46 +00:00
rtl * m68k: fixed setjmp/longjmp: 2014-07-01 11:46:10 +00:00
tests Add a new warning message that is generated if an instance of an abstract class is created. This message is disabled by default, but can be switched on by using {$warn 4122 on} or {$warn 4122 error}. 2014-07-01 20:41:05 +00:00
utils * pas2jni: Fixed enums, added equals() methods to objects, enums and sets. 2014-06-24 13:57:31 +00:00
.gitattributes Add a new warning message that is generated if an instance of an abstract class is created. This message is disabled by default, but can be switched on by using {$warn 4122 on} or {$warn 4122 error}. 2014-07-01 20:41:05 +00:00
.gitignore * more finegrained parallelism support for testsuite runs: the tests are no 2012-06-03 17:56:28 +00:00
fpmake_add1.inc * Handle the location of each package at run-time, not at compilation time 2013-06-02 17:55:23 +00:00
fpmake_proc1.inc * Handle the location of each package at run-time, not at compilation time 2013-06-02 17:55:23 +00:00
fpmake.pp * Handle the location of each package at run-time, not at compilation time 2013-06-02 17:55:23 +00:00
Makefile * swap 2.6.4 and 2.6.2 in supported versions. Message now says 2.6.4, but 2.6.2 will work. 2014-04-20 15:06:47 +00:00
Makefile.fpc * swap 2.6.4 and 2.6.2 in supported versions. Message now says 2.6.4, but 2.6.2 will work. 2014-04-20 15:06:47 +00:00