public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95160] New: Explicit specialization in non-namespace scope bug
@ 2020-05-16 6:10 mikelojkovic at gmail dot com
2020-05-16 14:44 ` [Bug c++/95160] " mpolacek at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: mikelojkovic at gmail dot com @ 2020-05-16 6:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95160
Bug ID: 95160
Summary: Explicit specialization in non-namespace scope bug
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mikelojkovic at gmail dot com
Target Milestone: ---
#define DECLARE_INTERNAL_LINK_BASE(T) template<int Counter> struct T
#define DECLARE_INTERNAL_LINK_SPECIALIZATION(T, Counter) template<> struct
T<Counter>
namespace TestBugFix
{
struct FPlatformTypeLayoutParameters
{
DECLARE_INTERNAL_LINK_BASE(InternalLinkType);
DECLARE_INTERNAL_LINK_SPECIALIZATION(InternalLinkType,
__COUNTER__);
};
}
Causes explicit specialization in non-namespace scope error for C++ 17 and up.
I was told this should compile for those.Is this a bug?
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/95160] Explicit specialization in non-namespace scope bug
2020-05-16 6:10 [Bug c++/95160] New: Explicit specialization in non-namespace scope bug mikelojkovic at gmail dot com
@ 2020-05-16 14:44 ` mpolacek at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-05-16 14:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95160
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |mpolacek at gcc dot gnu.org
Resolution|--- |DUPLICATE
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
CWG 727.
*** This bug has been marked as a duplicate of bug 85282 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-16 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-16 6:10 [Bug c++/95160] New: Explicit specialization in non-namespace scope bug mikelojkovic at gmail dot com
2020-05-16 14:44 ` [Bug c++/95160] " 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).