tromey at sourceware dot org
2018-04-21 04:05:30 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=23103
Bug ID: 23103
Summary: C++ parser doesn't recognize typedefs in template
parameters
Product: gdb
Version: 8.0.1
Status: NEW
Severity: normal
Priority: P2
Component: c++
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
Consider this test case:
====
template<typename T> struct S { T val; };
typedef unsigned char uchar;
S<uchar> global { 23 };
int main()
{
return 0;
}
====
Compile with -g and break on the return and:
(gdb) p sizeof(S<uchar>)
No symbol "S<uchar>" in current context.
(gdb) p sizeof(S<unsigned char>)
$1 = 1
Both of these should work.
Bug ID: 23103
Summary: C++ parser doesn't recognize typedefs in template
parameters
Product: gdb
Version: 8.0.1
Status: NEW
Severity: normal
Priority: P2
Component: c++
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
Consider this test case:
====
template<typename T> struct S { T val; };
typedef unsigned char uchar;
S<uchar> global { 23 };
int main()
{
return 0;
}
====
Compile with -g and break on the return and:
(gdb) p sizeof(S<uchar>)
No symbol "S<uchar>" in current context.
(gdb) p sizeof(S<unsigned char>)
$1 = 1
Both of these should work.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are receiving this mail because:
You are on the CC list for the bug.