This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] PR 60686


On 07/07/2014 11:15 AM, Paolo Carlini wrote:
+      error ("only declarations can be marked %<explicit%>");

That's pretty unclear, since a definition is a declaration.

Let's split this into three error messages: If the problem is that we're outside the class, we should say that. If the problem is that it's not a constructor or conversion function, we should say that. If the problem is that it's not a member of the current class, we should say that.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]