public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
       [not found] <bug-20293-6594@http.gcc.gnu.org/bugzilla/>
@ 2005-10-31  2:49 ` mmitchel at gcc dot gnu dot org
  2005-11-14  1:32 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-31  2:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from mmitchel at gcc dot gnu dot org  2005-10-31 02:49 -------
Leaving as P2; we should try to fix this.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293


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

* [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
       [not found] <bug-20293-6594@http.gcc.gnu.org/bugzilla/>
  2005-10-31  2:49 ` [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access mmitchel at gcc dot gnu dot org
@ 2005-11-14  1:32 ` mmitchel at gcc dot gnu dot org
  2005-11-14  1:45 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-14  1:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293


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

* [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
       [not found] <bug-20293-6594@http.gcc.gnu.org/bugzilla/>
  2005-10-31  2:49 ` [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access mmitchel at gcc dot gnu dot org
  2005-11-14  1:32 ` mmitchel at gcc dot gnu dot org
@ 2005-11-14  1:45 ` mmitchel at gcc dot gnu dot org
  2005-11-14  1:50 ` [Bug c++/20293] [3.4/4.0 " mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-14  1:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from mmitchel at gcc dot gnu dot org  2005-11-14 01:45 -------
Subject: Bug 20293

Author: mmitchel
Date: Mon Nov 14 01:45:19 2005
New Revision: 106879

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106879
Log:
        PR c++/20293
        * cxx-pretty-print.c (pp_cxx_statement): Print qualifying scopes
        for namespaces.
        (pp_cxx_original_namespace_definition): Likewise.
        * name-lookup.c (ambiguous_decl): Don't issue error messages;
        instead return lists of ambiguous candidates.
        (select_decl): Handle ambiguous namespace lookups.
        * parser.c (cp_token): Add ambiguous_p.
        (cp_lexer_get_preprocessor_token): Set it.
        (cp_parser_diagnose_invalid_type_name): Avoid duplicate messages
        when a qualified name uses an invalid scope. 
        (cp_parser_primary_expression): Print ambiguous candidates.
        (cp_parser_type_parameter): Adjust comment to reflect new
        parameter name for cp_parser_lookup_name.
        (cp_parser_template_argument): Likewise.
        (cp_parser_elaborated_type_specifier): Likewise.
        (cp_parser_namespace_name): Likewise.
        (cp_parser_class_name): Print ambiguous candidates.
        (cp_parser_lookup_name): Rename ambiguous_p parameter to
        ambiguous_decls.  Use it to return a list of ambiguous candiates
        when a lookup is ambiguous.
        (cp_parser_lookup_name_simple): Adjust comment to reflect new
        parameter name for cp_parser_lookup_name.

        PR c++/20293
        * g++.dg/parse/ambig4.C: New test.
        * g++.dg/tc1/dr101.C: Adjust error markers.
        * g++.dg/lookup/strong-using-2.C: Likewise.
        * g++.dg/lookup/ambig5.C: Likewise.
        * g++.dg/lookup/ambig4.C: Likewise.
        * g++.dg/parse/crash22.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/parse/ambig4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cxx-pretty-print.c
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/lookup/ambig4.C
    trunk/gcc/testsuite/g++.dg/lookup/ambig5.C
    trunk/gcc/testsuite/g++.dg/lookup/strong-using-2.C
    trunk/gcc/testsuite/g++.dg/parse/crash22.C
    trunk/gcc/testsuite/g++.dg/tc1/dr101.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293


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

* [Bug c++/20293] [3.4/4.0 regression] Wrong diagnostic for ambiguous access
       [not found] <bug-20293-6594@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-11-14  1:45 ` mmitchel at gcc dot gnu dot org
@ 2005-11-14  1:50 ` mmitchel at gcc dot gnu dot org
  2006-03-11  3:17 ` mmitchel at gcc dot gnu dot org
  2007-01-18  3:39 ` [Bug c++/20293] [4.0 " gdr at gcc dot gnu dot org
  5 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-14  1:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from mmitchel at gcc dot gnu dot org  2005-11-14 01:50 -------
Fixed in 4.1.

See http://gcc.gnu.org/ml/gcc-patches/2005-11/msg00942.html for considerations
about backporting to other branches.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW
            Summary|[3.4/4.0/4.1 regression]    |[3.4/4.0 regression] Wrong
                   |Wrong diagnostic for        |diagnostic for ambiguous
                   |ambiguous access            |access


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293


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

* [Bug c++/20293] [3.4/4.0 regression] Wrong diagnostic for ambiguous access
       [not found] <bug-20293-6594@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2005-11-14  1:50 ` [Bug c++/20293] [3.4/4.0 " mmitchel at gcc dot gnu dot org
@ 2006-03-11  3:17 ` mmitchel at gcc dot gnu dot org
  2007-01-18  3:39 ` [Bug c++/20293] [4.0 " gdr at gcc dot gnu dot org
  5 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-03-11  3:17 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.3                       |4.0.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293


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

* [Bug c++/20293] [4.0 regression] Wrong diagnostic for ambiguous access
       [not found] <bug-20293-6594@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2006-03-11  3:17 ` mmitchel at gcc dot gnu dot org
@ 2007-01-18  3:39 ` gdr at gcc dot gnu dot org
  5 siblings, 0 replies; 6+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-01-18  3:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from gdr at gcc dot gnu dot org  2007-01-18 03:39 -------
Fixed in 4.1.0.


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.0.4                       |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293


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

end of thread, other threads:[~2007-01-18  3:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-20293-6594@http.gcc.gnu.org/bugzilla/>
2005-10-31  2:49 ` [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access mmitchel at gcc dot gnu dot org
2005-11-14  1:32 ` mmitchel at gcc dot gnu dot org
2005-11-14  1:45 ` mmitchel at gcc dot gnu dot org
2005-11-14  1:50 ` [Bug c++/20293] [3.4/4.0 " mmitchel at gcc dot gnu dot org
2006-03-11  3:17 ` mmitchel at gcc dot gnu dot org
2007-01-18  3:39 ` [Bug c++/20293] [4.0 " gdr at gcc dot gnu dot org

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