This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11415] New: Error message with ::::
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2003 22:31:15 -0000
- Subject: [Bug c++/11415] New: Error message with ::::
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11415
Summary: Error message with ::::
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
This is more for everyone's amusement than an urgent bug report. This
code here
----------------------
template <typename> struct V {};
V< ::Outer::Inner > v;
----------------------
generates the funny error message
mortar/libmortar> c++ -c x.cc
x.cc:3: error: `::::Outer' is not a class-name or namespace-name
x.cc:3: error: `Inner' was not declared in this scope
x.cc:3: error: template argument 1 is invalid
x.cc:3: error: expected constructor, destructor, or type conversion
Note the duplicated :: operator. In a sense, this is even a regression,
since 3.3 gives the following message:
mortar/libmortar> ~/bin/gcc-3.3/bin/c++ -c x.cc
x.cc:3: error: `::Outer' undeclared (first use here)
x.cc:3: error: parse error before `::' token
However, I'm pretty sure there are more pressing cases for potential bug
fixers ;-)
W.