Discussion:
[Bug compile/23588] New: Compile C++:
keiths at redhat dot com
2018-08-29 14:26:55 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23588

Bug ID: 23588
Summary: Compile C++:
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: compile
Assignee: unassigned at sourceware dot org
Reporter: keiths at redhat dot com
Target Milestone: ---

Tracking bug for gdb.compile/compile-cplus-anonymous.exp failures:

KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile code anon_s.len
KFAIL: gdb.compile/compile-cplus-anonymous.exp: result of compile code
anon_s.len
KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile print anon_s.len
KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile code anon_s.MAGIC
KFAIL: gdb.compile/compile-cplus-anonymous.exp: result of compile code
anon_s.MAGIC
KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile print anon_s.MAGIC
KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile code anon_s.ua
KFAIL: gdb.compile/compile-cplus-anonymous.exp: result of compile code
anon_s.ua
KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile print anon_s.ua
KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile code (*anon_s.ptr ==
'a')
KFAIL: gdb.compile/compile-cplus-anonymous.exp: result of compile code
(*anon_s.ptr == 'a')
KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile print (*anon_s.ptr ==
'a')

Example output:
compile code var = anon_s.len
*** WARNING *** there are active plugins, do not report this as a bug unless
you
can reproduce it without enabling any plugins.
Event | Plugins
PLUGIN_PRE_GENERICIZE | libcp1plugin
PLUGIN_GGC_MARKING | libcp1plugin
PLUGIN_PRAGMAS | libcp1plugin
gdb command line:1:7: internal compiler error: Segmentation fault
0xf65010 crash_signal
../../gcc/gcc/toplev.c:337
0xf5c4f5 get_identifier(char const*)
../../gcc/gcc/stringpool.c:110
0x7f22779e7e58 plugin_build_field(cc1_plugin::connection*, char const*,
unsigned
long long, gcc_cp_symbol_kind, unsigned long, unsigned long)
../../gcc/libcc1/libcp1plugin.cc:1885
0x7f22779f8784 cc1_plugin::connection::do_wait(bool)
../../gcc/libcc1/connection.cc:144
0x7f22779ed6e2 cc1_plugin::connection::wait_for_result()
../../gcc/libcc1/connection.hh:72
0x7f22779ee571 cc1_plugin::status cc1_plugin::call<int, gcc_cp_oracle_request,
char const*>(cc1_plugin::connection*, char const*, int*, gcc_cp_oracle_request,
char const*)
../../gcc/libcc1/rpc.hh:338
0x7f22779e38b9 plugin_binding_oracle
../../gcc/libcc1/libcp1plugin.cc:256
0x91d6ca query_oracle
../../gcc/gcc/cp/name-lookup.c:114
0x929397 lookup_name_real_1
../../gcc/gcc/cp/name-lookup.c:5059
0x9296d4 lookup_name_real(tree_node*, int, int, bool, int, int)
../../gcc/gcc/cp/name-lookup.c:5197
0x8659b1 cp_parser_lookup_name
../../gcc/gcc/cp/parser.c:25690
0x85f3b3 cp_parser_class_name
../../gcc/gcc/cp/parser.c:21953
0x856faa cp_parser_type_name
../../gcc/gcc/cp/parser.c:17016
0x856f61 cp_parser_type_name
../../gcc/gcc/cp/parser.c:17004
0x856ae1 cp_parser_simple_type_specifier
../../gcc/gcc/cp/parser.c:16876
0x844547 cp_parser_postfix_expression
../../gcc/gcc/cp/parser.c:6704
0x847a4b cp_parser_unary_expression
../../gcc/gcc/cp/parser.c:8108
0x84889c cp_parser_cast_expression
../../gcc/gcc/cp/parser.c:8786
0x84898e cp_parser_binary_expression
../../gcc/gcc/cp/parser.c:8887
0x849667 cp_parser_assignment_expression
../../gcc/gcc/cp/parser.c:9174
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compilation failed.

These are occurring because the compiler plug-in lacks support for anonymous
structs.
--
You are receiving this mail because:
You are on the CC list for the bug.
keiths at redhat dot com
2018-08-29 19:57:42 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23588

Keith Seitz <keiths at redhat dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|Compile C++: |Compile C++: compiler
| |plug-in does not support
| |anonymous structs (tracker)
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...