public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102568] New: "taking address of temporary array" error when passing temporary array
@ 2021-10-02 19:47 kamkaz at windowslive dot com
2021-10-02 20:01 ` [Bug c++/102568] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: kamkaz at windowslive dot com @ 2021-10-02 19:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102568
Bug ID: 102568
Summary: "taking address of temporary array" error when passing
temporary array
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kamkaz at windowslive dot com
Target Milestone: ---
void foo(int* arr);
int main() {
using array = int[5];
foo((array{1, 2, 3, 4, 5}));
}
Gives an error:
<source>: In function 'int main()':
<source>:6:31: error: taking address of temporary array
Problem occurs on all GCC versions 4.7.1 up.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/102568] "taking address of temporary array" error when passing temporary array
2021-10-02 19:47 [Bug c++/102568] New: "taking address of temporary array" error when passing temporary array kamkaz at windowslive dot com
@ 2021-10-02 20:01 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-02 20:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102568
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 94264.
*** This bug has been marked as a duplicate of bug 94264 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-02 20:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-02 19:47 [Bug c++/102568] New: "taking address of temporary array" error when passing temporary array kamkaz at windowslive dot com
2021-10-02 20:01 ` [Bug c++/102568] " 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).