public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100741] New: [enhancement] Should show better error message if using ‘typedef’ instead of ‘using’.
@ 2021-05-24 11:12 cyp561 at gmail dot com
2021-05-24 11:13 ` [Bug c++/100741] " redi at gcc dot gnu.org
2021-05-24 11:14 ` redi at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: cyp561 at gmail dot com @ 2021-05-24 11:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100741
Bug ID: 100741
Summary: [enhancement] Should show better error message if
using ‘typedef’ instead of ‘using’.
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: cyp561 at gmail dot com
Target Milestone: ---
Test code:
typedef Rng = std::mt19937_64;
Actual error message:
error: ‘Rng’ does not name a type
Useful error message:
error: Used ‘typedef’ with ‘using’ syntax
11 | typedef Rng = std::mt19937_64;
^~~~~~~
using
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-24 11:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24 11:12 [Bug c++/100741] New: [enhancement] Should show better error message if using ‘typedef’ instead of ‘using’ cyp561 at gmail dot com
2021-05-24 11:13 ` [Bug c++/100741] " redi at gcc dot gnu.org
2021-05-24 11:14 ` 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).