[PATCH] [gdb/testsuite] templates.exp to accept clang++ output
Sharma, Alok Kumar
AlokKumar.Sharma@amd.com
Thu Jul 22 04:35:33 GMT 2021
Ping !
Regards,
Alok
-----Original Message-----
From: Sharma, Alok Kumar
Sent: Wednesday, July 14, 2021 11:17 AM
To: gdb-patches@sourceware.org
Cc: Parasuraman, Hariharan <Hariharan.Parasuraman@amd.com>; Joseph, Ancel <Ancel.Joseph@amd.com>; George, Jini Susan <JiniSusan.George@amd.com>; Achra, Nitika <Nitika.Achra@amd.com>; Kumar N, Bhuvanendra <Bhuvanendra.KumarN@amd.com>; Tomar, Sourabh Singh <SourabhSingh.Tomar@amd.com>
Subject: [PATCH] [gdb/testsuite] templates.exp to accept clang++ output
Hi all,
I request you all to please review this simple patch to allow Clang output for templates.exp
Problem Description:
Please consider below testcase with intended error.
``````````
constexpr const char cstring[] = "Eta";
template <const char*, typename T> class Column {};
using quick = Column<cstring,double>; // cstring without '&'
void lookup() {
quick c1;
c1.ls();
}
``````````
It produces below error.
``````````
no member named 'ls' in 'Column<&cstring, double>'.
``````````
Please note that error message contains '&' for cstring, which is absent in actual program.
Clang++ does not generate & in such cases and this should also be
accepted as correct output.
gdb/testsuite/ChangeLog:
* gdb.cp/templates.exp: Accept different but correct output
from the Clang++ compiled binary also.
Regards,
Alok
More information about the Gdb-patches
mailing list