public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52959] New: Missing typo suggestions
@ 2012-04-12 22:05 xinliangli at gmail dot com
2012-04-12 22:52 ` [Bug c++/52959] " pinskia at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: xinliangli at gmail dot com @ 2012-04-12 22:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52959
Bug #: 52959
Summary: Missing typo suggestions
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: xinliangli@gmail.com
struct BaseType {};
struct DerivedType : public BaseType {
static int base_type;
DerivedType() : basetype() {}
};
/*
typo1.cpp:4:19: error: initializer 'basetype' does not name a non-static
data member or base class; did you mean the base class 'BaseType'?
DerivedType() : basetype() {}
^~~~~~~~
BaseType
typo1.cpp:2:22: note: base class 'BaseType' specified here
struct DerivedType : public BaseType {
^~~~~~~~~~~~~~~
1 error generated.
*/
namespace fiz { namespace bang {
int foobar();
} }
int test() {
return bang::Foobar();
}
/*
typo2.cpp:5:10: error: use of undeclared identifier 'bang'; did you mean
'fiz::bang'?
return bang::Foobar();
^~~~
fiz::bang
typo2.cpp:1:27: note: 'fiz::bang' declared here
namespace fiz { namespace bang {
^
typo2.cpp:5:16: error: no member named 'Foobar' in namespace 'fiz::bang';
did you mean 'foobar'?
return bang::Foobar();
~~~~~~^~~~~~
foobar
typo2.cpp:2:7: note: 'foobar' declared here
int foobar();
^
2 errors generated.
*/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52959] Missing typo suggestions
2012-04-12 22:05 [Bug c++/52959] New: Missing typo suggestions xinliangli at gmail dot com
@ 2012-04-12 22:52 ` pinskia at gcc dot gnu.org
2012-04-12 23:03 ` manu at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-04-12 22:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52959
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-12 22:51:47 UTC ---
I think this is the same as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52277 .
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52959] Missing typo suggestions
2012-04-12 22:05 [Bug c++/52959] New: Missing typo suggestions xinliangli at gmail dot com
2012-04-12 22:52 ` [Bug c++/52959] " pinskia at gcc dot gnu.org
@ 2012-04-12 23:03 ` manu at gcc dot gnu.org
2021-08-10 0:13 ` pinskia at gcc dot gnu.org
2021-08-10 10:10 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: manu at gcc dot gnu.org @ 2012-04-12 23:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52959
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-12 23:02:47 UTC ---
(In reply to comment #1)
> I think this is the same as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52277 .
No, this is a bit more complex than a simple spell-checker.
(Although the bang::foobar is probably easy to implement).
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52959] Missing typo suggestions
2012-04-12 22:05 [Bug c++/52959] New: Missing typo suggestions xinliangli at gmail dot com
2012-04-12 22:52 ` [Bug c++/52959] " pinskia at gcc dot gnu.org
2012-04-12 23:03 ` manu at gcc dot gnu.org
@ 2021-08-10 0:13 ` pinskia at gcc dot gnu.org
2021-08-10 10:10 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-10 0:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52959
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Last reconfirmed|2014-08-20 00:00:00 |2021-8-9
Keywords| |diagnostic
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52959] Missing typo suggestions
2012-04-12 22:05 [Bug c++/52959] New: Missing typo suggestions xinliangli at gmail dot com
` (2 preceding siblings ...)
2021-08-10 0:13 ` pinskia at gcc dot gnu.org
@ 2021-08-10 10:10 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2021-08-10 10:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52959
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is a rather unhelpful bug report. For anybody else wondering what the OP
is actually saying: the commented-out errors in the original report show
clang's output, and the request is that GCC should do something similar.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-10 10:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-12 22:05 [Bug c++/52959] New: Missing typo suggestions xinliangli at gmail dot com
2012-04-12 22:52 ` [Bug c++/52959] " pinskia at gcc dot gnu.org
2012-04-12 23:03 ` manu at gcc dot gnu.org
2021-08-10 0:13 ` pinskia at gcc dot gnu.org
2021-08-10 10:10 ` redi 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).