Skip to content

Commit dfff111

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2348 from tautschnig/c++-block-pointer
C++ front-end: Type check Apple block pointers
2 parents e6d76e5 + 612fc38 commit dfff111

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
+1-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
KNOWNBUG
1+
CORE
22
main.cpp
33

44
^EXIT=0$
55
^SIGNAL=0$
66
--
77
^warning: ignoring
88
^CONVERSION ERROR$
9-
--
10-
This is being tracked in #1647.

src/cpp/cpp_typecheck_type.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ void cpp_typecheckt::typecheck_type(typet &type)
252252
{
253253
// This is an Apple extension for lambda-like constructs.
254254
// http://thirdcog.eu/pwcblocks/
255+
// we just treat them as references to functions
256+
type.id(ID_frontend_pointer);
257+
typecheck_type(type);
255258
}
256259
else if(type.id()==ID_nullptr)
257260
{

0 commit comments

Comments
 (0)