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++/20453] GCC fails to treat a valid constant expression as a template argument


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-13 14:30 -------
I cannot reproduce it either with an obvious change to fix the missing >:
#include <cstddef>

template <
     std::size_t size_
   , std::size_t alignment_ = std::size_t(-1)>
class aligned_storage
{
};

int main()
{
  aligned_storage<1> as;
}

-- 


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


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