This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33839] [4.3 regresssion] ICE with decltype
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2007 23:36:03 -0000
- Subject: [Bug c++/33839] [4.3 regresssion] ICE with decltype
- References: <bug-33839-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from bangerth at dealii dot org 2007-10-20 23:36 -------
The code should be invalid precisely because this is also invalid:
-------------------
template<int> struct A;
void foo()
{
A<0>;
}
-------------------
g/x> c++ -c x.cc
x.cc: In function 'void foo()':
x.cc:5: error: declaration does not declare anything
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33839