254e6b9ed4
* NEWS: Add entry. * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present, create a symbol for the field and record the value. (new_symbol): Handle DW_TAG_member. * gdbtypes.c (field_is_static): Remove FIXME. * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN, only ignore LOC_CONST symbols that are enums. testsuite/ Test PR c++/11702. * gdb.cp/m-static.exp: Add testcase. * gdb.cp/m-static.h (gnu_obj_4): Add initialized static const member.
14 lines
244 B
C++
14 lines
244 B
C++
// 2002-08-16
|
|
|
|
class gnu_obj_4
|
|
{
|
|
public:
|
|
static const int elsewhere;
|
|
static const int nowhere;
|
|
static const int everywhere = 317;
|
|
static const float somewhere = 3.14159;
|
|
|
|
// try to ensure test4 is actually allocated
|
|
int dummy;
|
|
};
|
|
|