[Bug c++/91826] [8/9/10 Regression] Unexpected behavior when class defined with namespace alias

2024-09-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826

--- Comment #8 from GCC Commits  ---
The master branch has been updated by Sam James :

https://gcc.gnu.org/g:d5864b95ce94d9d480a70ffd6e2e4a5f45dc75ed

commit r15-3878-gd5864b95ce94d9d480a70ffd6e2e4a5f45dc75ed
Author: Sam James 
Date:   Wed Jul 31 17:26:05 2024 +0100

testsuite: fix dejagnu typos with underscores

Fix typos in dejagnu 'dg-*' directives with erroneous underscores like
'dg_'.

gcc/testsuite/ChangeLog:
PR debug/30161
PR c++/91826
PR c++/116846

* g++.dg/debug/dwarf2/template-func-params-7.C: Fix errant
underscore.
Cleanup whitespace in directives too.
* g++.dg/lookup/pr91826.C: Fix errant underscore.
* g++.dg/modules/indirect-1_b.C: Ditto.
* gcc.target/powerpc/vsx-builtin-msum.c: Ditto.

[Bug c++/91826] [8/9/10 Regression] Unexpected behavior when class defined with namespace alias

2020-01-27 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826

Nathan Sidwell  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Nathan Sidwell  ---
Backported to 8 & 9 too

[Bug c++/91826] [8/9/10 Regression] Unexpected behavior when class defined with namespace alias

2020-01-27 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826

--- Comment #6 from CVS Commits  ---
The releases/gcc-8 branch has been updated by Nathan Sidwell
:

https://gcc.gnu.org/g:573b265dc7bbafbdef82dd7904ca429f703e1f6c

commit r8-9958-g573b265dc7bbafbdef82dd7904ca429f703e1f6c
Author: Nathan Sidwell 
Date:   Mon Jan 27 05:49:43 2020 -0800

c++: Bogus error using namespace alias [PR91826]

My changes to is_nested_namespace broke is_ancestor's use where a namespace
alias might be passed in.  This changes is_ancestor to look through the
alias.

PR c++/91826
* name-lookup.c (is_ancestor): Allow CHILD to be a namespace alias.

[Bug c++/91826] [8/9/10 Regression] Unexpected behavior when class defined with namespace alias

2020-01-27 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826

--- Comment #5 from CVS Commits  ---
The releases/gcc-9 branch has been updated by Nathan Sidwell
:

https://gcc.gnu.org/g:2ceb5aba64e587f8ce66bec3c9af1f2cf60effa0

commit r9-8181-g2ceb5aba64e587f8ce66bec3c9af1f2cf60effa0
Author: Nathan Sidwell 
Date:   Mon Jan 27 05:49:43 2020 -0800

c++: Bogus error using namespace alias [PR91826]

My changes to is_nested_namespace broke is_ancestor's use where a namespace
alias might be passed in.  This changes is_ancestor to look through the
alias.

PR c++/91826
* name-lookup.c (is_ancestor): Allow CHILD to be a namespace alias.

[Bug c++/91826] [8/9/10 Regression] Unexpected behavior when class defined with namespace alias

2020-01-27 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826

--- Comment #4 from Nathan Sidwell  ---
Fixed master feaa1640b3543c7c3a1f3a788bc449a3638cb780, will backport

[Bug c++/91826] [8/9/10 Regression] Unexpected behavior when class defined with namespace alias

2020-01-27 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826

--- Comment #3 from CVS Commits  ---
The master branch has been updated by Nathan Sidwell :

https://gcc.gnu.org/g:feaa1640b3543c7c3a1f3a788bc449a3638cb780

commit r10-6253-gfeaa1640b3543c7c3a1f3a788bc449a3638cb780
Author: Nathan Sidwell 
Date:   Mon Jan 27 05:49:43 2020 -0800

c++: Bogus error using namespace alias [PR91826]

My changes to is_nested_namespace broke is_ancestor's use where a namespace
alias might be passed in.  This changes is_ancestor to look through the
alias.

PR c++/91826
* name-lookup.c (is_ancestor): Allow CHILD to be a namespace alias.

[Bug c++/91826] [8/9/10 Regression] Unexpected behavior when class defined with namespace alias

2020-01-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/91826] [8/9/10 Regression] Unexpected behavior when class defined with namespace alias

2019-10-22 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826

Nathan Sidwell  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |nathan at gcc dot 
gnu.org

[Bug c++/91826] [8/9/10 Regression] Unexpected behavior when class defined with namespace alias

2019-10-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |8.4

[Bug c++/91826] [8/9/10 Regression] Unexpected behavior when class defined with namespace alias

2019-09-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91826

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-09-23
 CC||nathan at gcc dot gnu.org
  Known to work||7.4.0
Summary|Unexpected behavior when|[8/9/10 Regression]
   |class defined with  |Unexpected behavior when
   |namespace alias |class defined with
   ||namespace alias
 Ever confirmed|0   |1
  Known to fail||10.0, 8.3.0, 9.2.0

--- Comment #2 from Jonathan Wakely  ---
Started to be rejected with r248095

* cp-tree.h (SCOPE_DEPTH): New.
* name-lookup.h (is_nested_namespace): Declare.
* name-lookup.c (is_nested_namespace): New.
(is_ancestor): Use it.
(set_decl_namespace): Likewise.
(push_namespace): Set SCOPE_DEPTH.
* pt.c (check_specialization_namespace): Use is_nested_namespace.
(check_unqualigied_spec_or_inst): Likewise.