public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/66000] New: Suggestion: more than one "not declared in this scope" per line
@ 2015-05-04  1:19 darlingm at gmail dot com
  2015-05-12 13:05 ` [Bug c/66000] " egall at gwmail dot gwu.edu
  0 siblings, 1 reply; 2+ messages in thread
From: darlingm at gmail dot com @ 2015-05-04  1:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66000

            Bug ID: 66000
           Summary: Suggestion: more than one "not declared in this scope"
                    per line
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: darlingm at gmail dot com
  Target Milestone: ---

With the code
   nonExistantClass varName = nonExistantFunction();

gcc 5.1.0 gives
   error: `nonExistantClass' was not declared in this scope
      nonExistantClass varName = nonExistantFunction();
      ^

It might be better if it ALSO gave:
   error: `nonExistantFunction' was not declared in this scope
      nonExistantClass varName = nonExistantFunction();
                                 ^


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/66000] Suggestion: more than one "not declared in this scope" per line
  2015-05-04  1:19 [Bug c/66000] New: Suggestion: more than one "not declared in this scope" per line darlingm at gmail dot com
@ 2015-05-12 13:05 ` egall at gwmail dot gwu.edu
  0 siblings, 0 replies; 2+ messages in thread
From: egall at gwmail dot gwu.edu @ 2015-05-12 13:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66000

Eric Gallager <egall at gwmail dot gwu.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egall at gwmail dot gwu.edu

--- Comment #1 from Eric Gallager <egall at gwmail dot gwu.edu> ---
(In reply to Michael Darling from comment #0)
> With the code
>    nonExistantClass varName = nonExistantFunction();
> 
> gcc 5.1.0 gives
>    error: `nonExistantClass' was not declared in this scope
>       nonExistantClass varName = nonExistantFunction();
>       ^
> 
> It might be better if it ALSO gave:
>    error: `nonExistantFunction' was not declared in this scope
>       nonExistantClass varName = nonExistantFunction();
>                                  ^

idk, this might lengthen the error output considerably for files with a lot of
undeclared identifiers in them...


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-12 13:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-04  1:19 [Bug c/66000] New: Suggestion: more than one "not declared in this scope" per line darlingm at gmail dot com
2015-05-12 13:05 ` [Bug c/66000] " egall at gwmail dot gwu.edu

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).