public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/46688] New: [4.6 Regression] g++ requires a function declaration when it should not @ 2010-11-27 23:30 roman at binarylife dot net 2010-11-28 1:29 ` [Bug c++/46688] " rguenth at gcc dot gnu.org ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: roman at binarylife dot net @ 2010-11-27 23:30 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46688 Summary: [4.6 Regression] g++ requires a function declaration when it should not Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: roman@binarylife.net $ cat test.cc struct A { A(int); }; struct B { B() {} A a[]; }; $ g++ test.cc test.cc: In constructor 'B::B()': test.cc:6:8: error: no matching function for call to 'A::A()' test.cc:2:4: note: candidates are: A::A(int) test.cc:1:8: note: A::A(const A&) The same problem with A a[0]; v4.5 is perfect in this respect. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/46688] [4.6 Regression] g++ requires a function declaration when it should not 2010-11-27 23:30 [Bug c++/46688] New: [4.6 Regression] g++ requires a function declaration when it should not roman at binarylife dot net @ 2010-11-28 1:29 ` rguenth at gcc dot gnu.org 2010-11-28 1:33 ` hjl.tools at gmail dot com ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu.org @ 2010-11-28 1:29 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46688 Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed| |2010.11.27 23:30:40 Target Milestone|--- |4.6.0 Ever Confirmed|0 |1 --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-27 23:30:40 UTC --- Confirmed. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/46688] [4.6 Regression] g++ requires a function declaration when it should not 2010-11-27 23:30 [Bug c++/46688] New: [4.6 Regression] g++ requires a function declaration when it should not roman at binarylife dot net 2010-11-28 1:29 ` [Bug c++/46688] " rguenth at gcc dot gnu.org @ 2010-11-28 1:33 ` hjl.tools at gmail dot com 2011-01-03 20:27 ` rguenth at gcc dot gnu.org ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: hjl.tools at gmail dot com @ 2010-11-28 1:33 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46688 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at redhat dot com --- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-28 00:02:57 UTC --- It is caused by revision 165976: http://gcc.gnu.org/ml/gcc-cvs/2010-10/msg01163.html ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/46688] [4.6 Regression] g++ requires a function declaration when it should not 2010-11-27 23:30 [Bug c++/46688] New: [4.6 Regression] g++ requires a function declaration when it should not roman at binarylife dot net 2010-11-28 1:29 ` [Bug c++/46688] " rguenth at gcc dot gnu.org 2010-11-28 1:33 ` hjl.tools at gmail dot com @ 2011-01-03 20:27 ` rguenth at gcc dot gnu.org 2011-01-04 18:55 ` redi at gcc dot gnu.org ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu.org @ 2011-01-03 20:27 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46688 Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/46688] [4.6 Regression] g++ requires a function declaration when it should not 2010-11-27 23:30 [Bug c++/46688] New: [4.6 Regression] g++ requires a function declaration when it should not roman at binarylife dot net ` (2 preceding siblings ...) 2011-01-03 20:27 ` rguenth at gcc dot gnu.org @ 2011-01-04 18:55 ` redi at gcc dot gnu.org 2011-01-13 0:05 ` jason at gcc dot gnu.org ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: redi at gcc dot gnu.org @ 2011-01-04 18:55 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46688 --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-01-04 18:55:22 UTC --- Should TYPE_NEEDS_CONSTRUCTING be false for a zero-length/flexible array member? ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/46688] [4.6 Regression] g++ requires a function declaration when it should not 2010-11-27 23:30 [Bug c++/46688] New: [4.6 Regression] g++ requires a function declaration when it should not roman at binarylife dot net ` (3 preceding siblings ...) 2011-01-04 18:55 ` redi at gcc dot gnu.org @ 2011-01-13 0:05 ` jason at gcc dot gnu.org 2011-01-14 13:17 ` jason at gcc dot gnu.org 2011-01-14 13:44 ` paolo.carlini at oracle dot com 6 siblings, 0 replies; 8+ messages in thread From: jason at gcc dot gnu.org @ 2011-01-13 0:05 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46688 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |jason at gcc dot gnu.org --- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-01-13 00:02:35 UTC --- Mine. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/46688] [4.6 Regression] g++ requires a function declaration when it should not 2010-11-27 23:30 [Bug c++/46688] New: [4.6 Regression] g++ requires a function declaration when it should not roman at binarylife dot net ` (4 preceding siblings ...) 2011-01-13 0:05 ` jason at gcc dot gnu.org @ 2011-01-14 13:17 ` jason at gcc dot gnu.org 2011-01-14 13:44 ` paolo.carlini at oracle dot com 6 siblings, 0 replies; 8+ messages in thread From: jason at gcc dot gnu.org @ 2011-01-14 13:17 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46688 --- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-01-14 13:08:06 UTC --- Author: jason Date: Fri Jan 14 13:08:02 2011 New Revision: 168782 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168782 Log: PR c++/46688 * tree.c (build_vec_init_expr): Handle flexible array properly. Added: trunk/gcc/testsuite/g++.dg/ext/flexary2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/tree.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/46688] [4.6 Regression] g++ requires a function declaration when it should not 2010-11-27 23:30 [Bug c++/46688] New: [4.6 Regression] g++ requires a function declaration when it should not roman at binarylife dot net ` (5 preceding siblings ...) 2011-01-14 13:17 ` jason at gcc dot gnu.org @ 2011-01-14 13:44 ` paolo.carlini at oracle dot com 6 siblings, 0 replies; 8+ messages in thread From: paolo.carlini at oracle dot com @ 2011-01-14 13:44 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46688 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-01-14 13:33:11 UTC --- Fixed. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-01-14 13:35 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-11-27 23:30 [Bug c++/46688] New: [4.6 Regression] g++ requires a function declaration when it should not roman at binarylife dot net 2010-11-28 1:29 ` [Bug c++/46688] " rguenth at gcc dot gnu.org 2010-11-28 1:33 ` hjl.tools at gmail dot com 2011-01-03 20:27 ` rguenth at gcc dot gnu.org 2011-01-04 18:55 ` redi at gcc dot gnu.org 2011-01-13 0:05 ` jason at gcc dot gnu.org 2011-01-14 13:17 ` jason at gcc dot gnu.org 2011-01-14 13:44 ` 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).