public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96852] New: Missing diagnostic message for friend declaration with wrong number of template arguments.
@ 2020-08-30 16:10 anders.granlund.0 at gmail dot com
2021-08-03 4:59 ` [Bug c++/96852] " pinskia at gcc dot gnu.org
2021-08-03 5:00 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: anders.granlund.0 at gmail dot com @ 2020-08-30 16:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96852
Bug ID: 96852
Summary: Missing diagnostic message for friend declaration with
wrong number of template arguments.
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: anders.granlund.0 at gmail dot com
Target Milestone: ---
Program (main.cpp):
template<typename>
class A
{
};
class B
{
template<typename, typename>
friend class ::A;
};
int main()
{
}
Compilation command line:
g++ -std=c++17 -pedantic-errors main.cpp
Observed behaviour:
No compilation errors.
Expected behaviour:
Compilation error about using the wrong number of template arguments in the
firend declaration.
Note:
clang++ gives the expected error message.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/96852] Missing diagnostic message for friend declaration with wrong number of template arguments.
2020-08-30 16:10 [Bug c++/96852] New: Missing diagnostic message for friend declaration with wrong number of template arguments anders.granlund.0 at gmail dot com
@ 2021-08-03 4:59 ` pinskia at gcc dot gnu.org
2021-08-03 5:00 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-03 4:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96852
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.1.2
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/96852] Missing diagnostic message for friend declaration with wrong number of template arguments.
2020-08-30 16:10 [Bug c++/96852] New: Missing diagnostic message for friend declaration with wrong number of template arguments anders.granlund.0 at gmail dot com
2021-08-03 4:59 ` [Bug c++/96852] " pinskia at gcc dot gnu.org
@ 2021-08-03 5:00 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-03 5:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96852
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is a dup of bug 43694.
*** This bug has been marked as a duplicate of bug 43694 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-03 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-30 16:10 [Bug c++/96852] New: Missing diagnostic message for friend declaration with wrong number of template arguments anders.granlund.0 at gmail dot com
2021-08-03 4:59 ` [Bug c++/96852] " pinskia at gcc dot gnu.org
2021-08-03 5:00 ` pinskia 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).