Abstract The modification of highly permeable films of brominated 1,2-disubstituted polyacetylene, poly(4-methyl-2-penthyne), via incorporation of in situ formed butylimidazolium bromide is reported for the first time. Principal possibility and efficiency of supercritical CO2 and CHF3 use as reaction media for the corresponding process, namely for quaternization of butylimidazole by brominated polymer are revealed. As a result, we prepared new membrane materials possessing promising properties such as stability toward organic solvents, good mechanical properties and significantly improved CO2-selectivity while maintaining gas permeability at high values. Comparative analysis of the results allowed us to determine content and conditions for the incorporation of butylimidazolium groups optimal for most efficient separation of CO2 from industrial gas mixtures. These results are of interest for the designing of new CO2 selective membranes.