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++/33839] [4.3 regresssion] ICE with decltype



------- 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


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