tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: C++20 and gcc12/10



On Wed, Apr 16, 2025 at 06:45:18PM +0200, Edgar Fu? wrote:
 > I'm not sure whether I'm understanding this correctly.
 > 
 > It appears to me that for some m and n (probably m=10/12 and n=20)
 > 
 > 1. gccm claims to support c++n (i.e., accepts --std=c++n)
 > 2. gccm doesn't fully support c++n
 > 3. a substantial amount of software that declares to need c++n in fact 
 >    is happy with the subset of c++n supported by gccm
 > 
 > If 1. and 2. are correct: does GNU claim gccm supports c++n?

Yes, basically gcc10 accepts --std=c++20 but it is documented to be
partial.

Re 3 there are quite a few instances that are widely used packages,
like poppler.

 > If all of the above is correct, it looks to me that the only solutions for 
 > pkgsrc are
 > 
 > A. declare that c++n needs gcck for some k>m
 > B. introduce a notion of c++n-lite for the subset supported by gccm

Indeed...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index