public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97418] New: error diagnostics do not point the use of undeclared identifier
@ 2020-10-14 13:02 tangyixuan at mail dot dlut.edu.cn
2020-10-26 16:55 ` [Bug c++/97418] " mpolacek at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: tangyixuan at mail dot dlut.edu.cn @ 2020-10-14 13:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97418
Bug ID: 97418
Summary: error diagnostics do not point the use of undeclared
identifier
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tangyixuan at mail dot dlut.edu.cn
Target Milestone: ---
Hi, the following code is ill-formed. GCC may not point out the error in code
(use of undeclared identifier 'A' and 'C'), maybe it could be improved I guess.
$ cat s.cpp
namespace N {
struct S {};
void S ();
void func (){ class S a ;}
}
void func (){
class A :: B * b =& C :: A :: B ;
}
$ g++ -c s.cpp
216-8.C: In function ‘void func()’:
216-8.C:7:16: error: qualified-id in declaration before ‘*’ token
7 | class A :: B * b =& C :: A :: B ;
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/97418] error diagnostics do not point the use of undeclared identifier
2020-10-14 13:02 [Bug c++/97418] New: error diagnostics do not point the use of undeclared identifier tangyixuan at mail dot dlut.edu.cn
@ 2020-10-26 16:55 ` mpolacek at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-10-26 16:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97418
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Last reconfirmed| |2020-10-26
Ever confirmed|0 |1
Priority|P3 |P5
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-26 16:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 13:02 [Bug c++/97418] New: error diagnostics do not point the use of undeclared identifier tangyixuan at mail dot dlut.edu.cn
2020-10-26 16:55 ` [Bug c++/97418] " mpolacek at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).