public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/79387] Internal compiler error in convert_nontype_argument
[not found] <bug-79387-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-24 17:33 ` pinskia at gcc dot gnu.org
2021-07-24 17:33 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-24 17:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79387
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |8.0
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Testcase for x86-64:
const char someData[] = {1, 2, 3};
template <const long addr> class A {};
constexpr const long p = someData + 1;
A<p> a;
But this was fixed in GCC 8.1:
<source>:7:4: error: template argument '(long int)(((const char*)(& someData))
+ 1)' for type 'long int' not a constant integer
A<p> a;
^
Compiler returned: 1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/79387] Internal compiler error in convert_nontype_argument
[not found] <bug-79387-4@http.gcc.gnu.org/bugzilla/>
2021-07-24 17:33 ` [Bug c++/79387] Internal compiler error in convert_nontype_argument pinskia at gcc dot gnu.org
@ 2021-07-24 17:33 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-24 17:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79387
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-24 17:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-79387-4@http.gcc.gnu.org/bugzilla/>
2021-07-24 17:33 ` [Bug c++/79387] Internal compiler error in convert_nontype_argument pinskia at gcc dot gnu.org
2021-07-24 17:33 ` 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).