public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58940] New: [C++11] Bogus "error: use of deleted function ..."
@ 2013-10-31 13:48 ppluzhnikov at google dot com
2014-11-18 12:01 ` [Bug c++/58940] " paolo.carlini at oracle dot com
0 siblings, 1 reply; 2+ messages in thread
From: ppluzhnikov at google dot com @ 2013-10-31 13:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58940
Bug ID: 58940
Summary: [C++11] Bogus "error: use of deleted function ..."
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ppluzhnikov at google dot com
Google ref: b/11457051
Using g++ (GCC) 4.9.0 20131028 (experimental)
g++ -c -std=c++11 t.cc
t.cc: In constructor 'constexpr B<int>::B()':
t.cc:7:32: error: use of deleted function 'A< <template-parameter-1-1>
>::A(const A< <template-parameter-1-1> >&) [with <template-parameter-1-1> =
int]'
template < typename X > struct B
^
t.cc:3:5: note: declared here
A (A const &) = delete;
^
t.cc: At global scope:
t.cc:12:10: note: synthesized method 'constexpr B<int>::B()' first required
here
B < int >b;
^
Compiles with Clang.
Probably same root cause as in PR58930. Test case:
// ---
template < typename > struct A
{
A (A const &) = delete;
A (int);
};
template < typename X > struct B
{
A < X > a { 0 };
};
B < int >b;
// ---
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/58940] [C++11] Bogus "error: use of deleted function ..."
2013-10-31 13:48 [Bug c++/58940] New: [C++11] Bogus "error: use of deleted function ..." ppluzhnikov at google dot com
@ 2014-11-18 12:01 ` paolo.carlini at oracle dot com
0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-11-18 12:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58940
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Yes, also already fixed.
*** This bug has been marked as a duplicate of bug 58930 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-18 12:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-31 13:48 [Bug c++/58940] New: [C++11] Bogus "error: use of deleted function ..." ppluzhnikov at google dot com
2014-11-18 12:01 ` [Bug c++/58940] " paolo.carlini at oracle dot com
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).