This is the mail archive of the gcc-bugs@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]

[Bug c++/11507] [3.4 regression] parser fails to recognize namespace


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-12 23:41:20
               date|                            |
            Summary|[3.4 regression]parser fails|[3.4 regression] parser
                   |to recognize namespace;     |fails to recognize namespace
                   |regression to 3.3           |


------- Additional Comments From bangerth at dealii dot org  2003-07-12 23:41 -------
I don't think you technique is something I would recommend, but there is still
a bug in gcc :-)

Here's a cut-down testcase:
------------------------
namespace NS
{
  void foo(bool arg1);
}

namespace M {
  namespace K {
    bool Bc(bool x);
  }

  void bar() {
    NS::foo (K::Bc(true));
  };
}
--------------------------
This is used to compile with 3.3, but now fails like so:

tmp/gg> ../build-gcc/gcc-install/bin/c++ -c x.cc
x.cc: In function `void M::bar()':
x.cc:12: error: `K' is not a class-name or namespace-name
x.cc:12: error: `Bc' undeclared (first use this function)
x.cc:12: error: (Each undeclared identifier is reported only once for each
   function it appears in.)

I think gcc is wrong. icc agress with me.

W.


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