This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29297] New: Segmentation fault on "invalid use of `::'"
- From: "stefaan dot deroeck at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Sep 2006 10:23:10 -0000
- Subject: [Bug c++/29297] New: Segmentation fault on "invalid use of `::'"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
test.ii:7: error: invalid use of `::'
test.ii:7: error: declaration of `sp::a sp::a::my_type'
test.ii:1: error: changes meaning of `my_type' from `typedef int my_type'
g++.new: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
typedef int my_type;
namespace sp
{
struct a
{
my_type var;
a(sp::my_type);
a get() {}
};
}
Running on x86_64 with unpatched 3.4.6. Fails against patched 4.1.1 as well (do
not have an unpatched one ready). Could not reproduce this on i386.
--
Summary: Segmentation fault on "invalid use of `::'"
Product: gcc
Version: 3.4.6
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: stefaan dot deroeck at gmail dot com
GCC host triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29297