* [Bug c++/20293] ambiguous namespace and diagnostic, unamed namespace
2005-03-02 22:19 [Bug c++/20293] New: namespace name lost igodard at pacbell dot net
@ 2005-03-02 23:01 ` pinskia at gcc dot gnu dot org
2005-03-02 23:03 ` [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access bangerth at dealii dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-02 23:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-02 23:01 -------
Confirmed, this is invalid code as the namespace hide is ambiguous but the diagnostic is just plainly
bogus. Related to both PR 100 and bug 12272.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |100, 12272
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2005-03-02 23:01:37
date| |
Summary|namespace name lost |ambiguous namespace and
| |diagnostic, unamed namespace
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
2005-03-02 22:19 [Bug c++/20293] New: namespace name lost igodard at pacbell dot net
2005-03-02 23:01 ` [Bug c++/20293] ambiguous namespace and diagnostic, unamed namespace pinskia at gcc dot gnu dot org
@ 2005-03-02 23:03 ` bangerth at dealii dot org
2005-03-02 23:24 ` giovannibajo at libero dot it
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2005-03-02 23:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2005-03-02 23:03 -------
This is indeed a diagnostic problem: the access is ambiguous, but instead
of saying so gcc chooses to mention that there is no such name at all. This
happens in many places, and I believe that there must be at least half
a dozen PRs about this.
This is in fact also a regression, since before the new parser we got this:
g/x> /home/bangerth/bin/gcc-3.3*/bin/c++ -c x.cc
x.cc: In function `int main()':
x.cc:16: error: use of `hide' is ambiguous
x.cc:1: error: first declared as `hide' here
x.cc:7: error: also declared as `<unnamed>::hide' here
x.cc:16: error: parse error before `::' token
icc says this:
g/x> icc -c x.cc
x.cc(16): error: "hide" is ambiguous
F(hide::j);
^
compilation aborted for x.cc (code 2)
W.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn|100, 12272 |
Severity|enhancement |normal
Known to fail| |3.4.3 4.0.0 4.1.0
Known to work| |2.95 3.2 3.3
Last reconfirmed|2005-03-02 23:01:37 |2005-03-02 23:03:15
date| |
Summary|ambiguous namespace and |[3.4/4.0/4.1 regression]
|diagnostic, unamed namespace|Wrong diagnostic for
| |ambiguous access
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
2005-03-02 22:19 [Bug c++/20293] New: namespace name lost igodard at pacbell dot net
2005-03-02 23:01 ` [Bug c++/20293] ambiguous namespace and diagnostic, unamed namespace pinskia at gcc dot gnu dot org
2005-03-02 23:03 ` [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access bangerth at dealii dot org
@ 2005-03-02 23:24 ` giovannibajo at libero dot it
2005-03-08 2:31 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2005-03-02 23:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2005-03-02 23:24 -------
(merging bugzilla conflicts...)
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |100, 12272
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
2005-03-02 22:19 [Bug c++/20293] New: namespace name lost igodard at pacbell dot net
` (2 preceding siblings ...)
2005-03-02 23:24 ` giovannibajo at libero dot it
@ 2005-03-08 2:31 ` pinskia at gcc dot gnu dot org
2005-03-11 16:27 ` lerdsuwa at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-08 2:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-08 02:31 -------
The diagnostic changed when the new parser was merged in (between 20021213 and 20021228).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
2005-03-02 22:19 [Bug c++/20293] New: namespace name lost igodard at pacbell dot net
` (3 preceding siblings ...)
2005-03-08 2:31 ` pinskia at gcc dot gnu dot org
@ 2005-03-11 16:27 ` lerdsuwa at gcc dot gnu dot org
2005-05-19 17:35 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-03-11 16:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-11 16:27 -------
The diagnostic is missing due to calling lookup_name_real inside
cp_parser_lookup_name without the LOOKUP_COMPLAIN flag. Too bad
we cannot just add this flag because this will cause duplicate
error messages. cp_parser_lookup_name are called multiple times
during tentative parse.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
2005-03-02 22:19 [Bug c++/20293] New: namespace name lost igodard at pacbell dot net
` (4 preceding siblings ...)
2005-03-11 16:27 ` lerdsuwa at gcc dot gnu dot org
@ 2005-05-19 17:35 ` mmitchel at gcc dot gnu dot org
2005-07-22 21:17 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:35 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.4 |3.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
2005-03-02 22:19 [Bug c++/20293] New: namespace name lost igodard at pacbell dot net
` (5 preceding siblings ...)
2005-05-19 17:35 ` mmitchel at gcc dot gnu dot org
@ 2005-07-22 21:17 ` pinskia at gcc dot gnu dot org
2005-09-11 1:51 ` bangerth at dealii dot org
2005-09-27 16:13 ` mmitchel at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 21:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-22 21:13 -------
Moving to 4.0.2 pre Mark.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.5 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
2005-03-02 22:19 [Bug c++/20293] New: namespace name lost igodard at pacbell dot net
` (6 preceding siblings ...)
2005-07-22 21:17 ` pinskia at gcc dot gnu dot org
@ 2005-09-11 1:51 ` bangerth at dealii dot org
2005-09-27 16:13 ` mmitchel at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2005-09-11 1:51 UTC (permalink / raw)
To: gcc-bugs
--
Bug 20293 depends on bug 100, which changed state.
Bug 100 Summary: confusing name lookup diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=100
What |Old Value |New Value
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
2005-03-02 22:19 [Bug c++/20293] New: namespace name lost igodard at pacbell dot net
` (7 preceding siblings ...)
2005-09-11 1:51 ` bangerth at dealii dot org
@ 2005-09-27 16:13 ` mmitchel at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:13 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293
^ permalink raw reply [flat|nested] 10+ messages in thread