File tree 4 files changed +26
-2
lines changed
4 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 1
- KNOWNBUG
1
+ CORE
2
2
main.cpp
3
3
4
4
^EXIT=0$
Original file line number Diff line number Diff line change
1
+ template <class _Tp , _Tp __v>
2
+ struct integral_constant
3
+ {
4
+ static const _Tp value = __v;
5
+ };
6
+
7
+ template <class _Tp , _Tp __v>
8
+ const _Tp integral_constant<_Tp, __v>::value;
9
+
10
+ typedef integral_constant<bool , true > true_type;
11
+
12
+ int main (int argc, char *argv[])
13
+ {
14
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.cpp
3
+
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^warning: ignoring
8
+ ^CONVERSION ERROR$
Original file line number Diff line number Diff line change @@ -163,7 +163,9 @@ symbolt &cpp_declarator_convertert::convert(
163
163
164
164
// If it is a constructor, we take care of the
165
165
// object initialization
166
- if (to_code_type (final_type).return_type ().id () == ID_constructor)
166
+ if (
167
+ final_type.id () == ID_code &&
168
+ to_code_type (final_type).return_type ().id () == ID_constructor)
167
169
{
168
170
const cpp_namet &name=declarator.name ();
169
171
You can’t perform that action at this time.
0 commit comments