jan.kratochvil at redhat dot com
2012-05-30 22:21:58 UTC
http://sourceware.org/bugzilla/show_bug.cgi?id=14186
Bug #: 14186
Summary: const volatile is ignored for TYPE_INSTANCE
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: c++
AssignedTo: ***@sourceware.org
ReportedBy: ***@redhat.com
Classification: Unclassified
Trailing const or volatile get parsed by they are ignored.
Output $3 should match $2, not $1.
p 'CV::m(int)'
$1 = {void (CV * const, CV::t)} 0x400944 <CV::m(int)>
p 'CV::m(int) const'
$2 = {void (const CV * const, CV::t)} 0x400952 <CV::m(int) const>
p CV::m(int) const
$3 = {void (CV * const, CV::t)} 0x400944 <CV::m(int)>
KFAIL: gdb.cp/cpexprs.exp: p CV::m(int) const (PRMS: gdb/9999)
former c-exp.y line:
exp : exp '(' nonempty_typelist ')' const_or_volatile
or new line:
exp : exp '('
/* This is to save the value of arglist_len
being accumulated by an outer function call. */
{ start_arglist (); }
arglist_final ')' const_or_volatile %prec ARROW
just ignore that 'const_or_volatile'.
Bug #: 14186
Summary: const volatile is ignored for TYPE_INSTANCE
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: c++
AssignedTo: ***@sourceware.org
ReportedBy: ***@redhat.com
Classification: Unclassified
Trailing const or volatile get parsed by they are ignored.
Output $3 should match $2, not $1.
p 'CV::m(int)'
$1 = {void (CV * const, CV::t)} 0x400944 <CV::m(int)>
p 'CV::m(int) const'
$2 = {void (const CV * const, CV::t)} 0x400952 <CV::m(int) const>
p CV::m(int) const
$3 = {void (CV * const, CV::t)} 0x400944 <CV::m(int)>
KFAIL: gdb.cp/cpexprs.exp: p CV::m(int) const (PRMS: gdb/9999)
former c-exp.y line:
exp : exp '(' nonempty_typelist ')' const_or_volatile
or new line:
exp : exp '('
/* This is to save the value of arglist_len
being accumulated by an outer function call. */
{ start_arglist (); }
arglist_final ')' const_or_volatile %prec ARROW
just ignore that 'const_or_volatile'.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.