This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44499] No default constructor available
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 4 Mar 2011 10:02:37 +0000
- Subject: [Bug c++/44499] No default constructor available
- Auto-submitted: auto-generated
- References: <bug-44499-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44499
--- Comment #13 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-03-04 10:02:19 UTC ---
(In reply to comment #12)
> Manu, can we close this?
@Jonathan
I still think that the messages of Comeau and Clang are better than GCC's. I
will try for 4.7 to produce a patch to change the message to be like:
error: default initialization of const object 'g_d' requires a user-provided
default constructor [-fpermissive]
note: 'const class D' has no user-provided default constructor
Do you agree?
(I'd like to keep the note to jump to the declaration of class D).
@Piotr,Ryan
I started a list of GCC diagnostics in the wiki.
http://gcc.gnu.org/wiki/VerboseDiagnostics
There is only one but the idea would be to collect in a single place extended
explanations and fix-it hints about gcc diagnostics. Perhaps in the future such
knowledge can be added to the compiler proper and enabled with a
-fdiagnostics-explain or -fdiagnostics-fix-it.
I think this could be a killer-feature for GCC to have, but collecting the data
is a lot of work for a single person. This is a way to contribute to GCC
without writing a single line of code!